angucomplete is looking for an input
See original GitHub issueActual 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.
link: function(scope, elem, attrs, ctrl) {
var inputField = elem.find('input');
I 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.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Angucomplete Alt: Autocomplete Directive for AngularJS
Angucomplete Alt. Awesome Autocompleteness for AngularJS. A minimal looking autocomplete directive originally developed by Daryl Rowland as Angucomplete, and I ...
Read more >searching again when click on the input in angucomplete-alt
When I press any key such as "table", it's will show a Dropdown with result. It's nice. But when i focus outside the...
Read more >How to validate input email in angucomplete-alt?
How to validate autocomplete input on email type? If unvalid to show error? I tried to use field-required="true" , but id does not...
Read more >Angucomplete Alt: Autocomplete Directive for AngularJS
A minimal looking autocomplete directive originally developed by Daryl Rowland as Angucomplete ... Example 10 - Track Input Changes; Example 11 - Auto...
Read more >angucomplete-alt
Attribute Description Required Binding Example
id A unique ID for the field. example Yes @ members
placeholder Placeholder text for the search field. example No...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m keeping this open so that people will know that there is a potential issue with custom template.
I also needed a textarea element instead of input, and i changed:
var inputField = elem.find('input');
with
var inputField = (attrs.textarea === "true") ? elem.find('textarea') : elem.find('input');
end that was enough for my needs.