{"action":"created","issue":{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/186","repository_url":"https://api.github.com/repos/ghiden/angucomplete-alt","labels_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/186/comments","events_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/186/events","html_url":"https://github.com/ghiden/angucomplete-alt/issues/186","id":91656336,"number":186,"title":"angucomplete is looking for an input","user":{"login":"steelstyle","id":404554,"avatar_url":"https://avatars.githubusercontent.com/u/404554?v=3","gravatar_id":"","url":"https://api.github.com/users/steelstyle","html_url":"https://github.com/steelstyle","followers_url":"https://api.github.com/users/steelstyle/followers","following_url":"https://api.github.com/users/steelstyle/following{/other_user}","gists_url":"https://api.github.com/users/steelstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/steelstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelstyle/subscriptions","organizations_url":"https://api.github.com/users/steelstyle/orgs","repos_url":"https://api.github.com/users/steelstyle/repos","events_url":"https://api.github.com/users/steelstyle/events{/privacy}","received_events_url":"https://api.github.com/users/steelstyle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/labels/minor","name":"minor","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-28T23:49:35Z","updated_at":"2016-04-11T19:09:57Z","closed_at":null,"body":"Actual version give ability to override template but still try to find the component where the user is going to type in to be an input. However it can be a textarea or multiple input might be in an user template.\r\n```javascript\r\nlink: function(scope, elem, attrs, ctrl) {\r\n    var inputField = elem.find('input');\r\n```\r\nI would suggest to find this input - textarea or whatever the dev want to use to be find based on a class name or an id, which could be configurable or not."},"comment":{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/comments/208506192","html_url":"https://github.com/ghiden/angucomplete-alt/issues/186#issuecomment-208506192","issue_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/186","id":208506192,"user":{"login":"azrael-sub7","id":3593329,"avatar_url":"https://avatars.githubusercontent.com/u/3593329?v=3","gravatar_id":"","url":"https://api.github.com/users/azrael-sub7","html_url":"https://github.com/azrael-sub7","followers_url":"https://api.github.com/users/azrael-sub7/followers","following_url":"https://api.github.com/users/azrael-sub7/following{/other_user}","gists_url":"https://api.github.com/users/azrael-sub7/gists{/gist_id}","starred_url":"https://api.github.com/users/azrael-sub7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azrael-sub7/subscriptions","organizations_url":"https://api.github.com/users/azrael-sub7/orgs","repos_url":"https://api.github.com/users/azrael-sub7/repos","events_url":"https://api.github.com/users/azrael-sub7/events{/privacy}","received_events_url":"https://api.github.com/users/azrael-sub7/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T19:09:57Z","updated_at":"2016-04-11T19:09:57Z","body":"I also needed a textarea element instead of input, and i changed:\r\n\r\n` var inputField = elem.find('input'); `\r\n\r\nwith \r\n\r\n`var inputField =  (attrs.textarea === \"true\") ? elem.find('textarea') : elem.find('input'); `\r\n\r\nend that was enough for my needs. \r\n"}}