{"action":"closed","issue":{"url":"https://api.github.com/repos/jacek-pulit/angular-elastic-input/issues/10","labels_url":"https://api.github.com/repos/jacek-pulit/angular-elastic-input/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/jacek-pulit/angular-elastic-input/issues/10/comments","events_url":"https://api.github.com/repos/jacek-pulit/angular-elastic-input/issues/10/events","html_url":"https://github.com/jacek-pulit/angular-elastic-input/issues/10","id":90126472,"number":10,"title":"Deleting all text won't resize the textbox","user":{"login":"Liriel","id":1565257,"avatar_url":"https://avatars.githubusercontent.com/u/1565257?v=3","gravatar_id":"","url":"https://api.github.com/users/Liriel","html_url":"https://github.com/Liriel","followers_url":"https://api.github.com/users/Liriel/followers","following_url":"https://api.github.com/users/Liriel/following{/other_user}","gists_url":"https://api.github.com/users/Liriel/gists{/gist_id}","starred_url":"https://api.github.com/users/Liriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liriel/subscriptions","organizations_url":"https://api.github.com/users/Liriel/orgs","repos_url":"https://api.github.com/users/Liriel/repos","events_url":"https://api.github.com/users/Liriel/events{/privacy}","received_events_url":"https://api.github.com/users/Liriel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-22T15:07:09Z","updated_at":"2015-09-09T21:05:58Z","closed_at":"2015-09-09T21:05:58Z","body":"When deleting all the text by selecting it then pressing <kbd>backspace</kbd> or <kbd>del</kbd> the input box will not resize. \\\\\r\nI fixed this by adding `|| \"\"` to the update function on line 40\r\n\r\n    function update() {\r\n        mirror.text(element.val() || attrs.placeholder || \"\");\r\n        element.css('width', mirror.outerWidth() + 1);\r\n    }\r\n"}}