ghiden / angucomplete-alt

Autocomplete Directive for AngularJS. A fork of Daryl Rowland's angucomplete (https://github.com/darylrowland/angucomplete) with some extra features.
https://ghiden.github.io/angucomplete-alt
MIT License
943 stars 496 forks source link

Selected object updates when deleting entire highlighted selection #493

Open joaomvfsantos opened 7 years ago

joaomvfsantos commented 7 years ago

Fix #179

joaomvfsantos commented 7 years ago

When min length is set to 0, the search is performed as soon as the input gets focus. After selecting a result and emptying the input the search was not performed again (thus no dropdown appearing) and the selected object was not cleared. This aims to solve both this issues. If you believe this is not the intended behavior feel free to discard this PR.