{"action":"closed","issue":{"url":"https://api.github.com/repos/ng2-ui/ng2-auto-complete/issues/56","repository_url":"https://api.github.com/repos/ng2-ui/ng2-auto-complete","labels_url":"https://api.github.com/repos/ng2-ui/ng2-auto-complete/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/ng2-ui/ng2-auto-complete/issues/56/comments","events_url":"https://api.github.com/repos/ng2-ui/ng2-auto-complete/issues/56/events","html_url":"https://github.com/ng2-ui/ng2-auto-complete/issues/56","id":189199502,"number":56,"title":"Input is cleared on focus/click","user":{"login":"Tanato","id":1019940,"avatar_url":"https://avatars.githubusercontent.com/u/1019940?v=3","gravatar_id":"","url":"https://api.github.com/users/Tanato","html_url":"https://github.com/Tanato","followers_url":"https://api.github.com/users/Tanato/followers","following_url":"https://api.github.com/users/Tanato/following{/other_user}","gists_url":"https://api.github.com/users/Tanato/gists{/gist_id}","starred_url":"https://api.github.com/users/Tanato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tanato/subscriptions","organizations_url":"https://api.github.com/users/Tanato/orgs","repos_url":"https://api.github.com/users/Tanato/repos","events_url":"https://api.github.com/users/Tanato/events{/privacy}","received_events_url":"https://api.github.com/users/Tanato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-14T19:17:17Z","updated_at":"2016-11-14T19:38:05Z","closed_at":"2016-11-14T19:38:05Z","body":"This behavior of cleaning the input in focus seems a little odd to me cause, in my opinion, if the goals is to mimic the input behavior extending it with new features, the text in the input should be keeped like in default input component.\r\n\r\nAnother issue that this behavior creates is that if you click in the input and the shown value is changed to empty string, the value is not propagated to the ngModel, leaving the component in a corrupted status if you leave the component without type anything. \r\n\r\nI have forked the repo and changed to behave like a simple input field, and soon I'll submit a pull request.\r\n\r\nI really like this component and hope you can accept this PR, even tough I know that this change the actual default behavior."}}
{"actor":{"display_login":"allenhwkim"}}