question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

angucomplete is looking for an input

See original GitHub issue

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.

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:open
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghidencommented, Jun 29, 2015

I’m keeping this open so that people will know that there is a potential issue with custom template.

0reactions
andrei0x309commented, Apr 11, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found