Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

autocomplete select pop ups when one word is contained in other #1781

Closed
david-gang opened this issue Mar 4, 2015 · 4 comments
Closed

autocomplete select pop ups when one word is contained in other #1781

david-gang opened this issue Mar 4, 2015 · 4 comments

Comments

@david-gang
Copy link
Contributor

Please look at this plunkr:

http://plnkr.co/edit/F7ljHYFj0AJIzOf6PnZy

I added an imaginary state alabama.
When writing ala and selecting alabama, the select pop ups again which is annoying

@ktapsoba
Copy link

ktapsoba commented Mar 4, 2015

I believe the createFilterFor function is looking for any options having "indexOf" the searchText. This is why you sill have alabama and alabamabama as options. You could first try to find an exact match and if nothing comes back then find any options with "indexOf".
That could work for now.

@gkalpak
Copy link
Member

gkalpak commented Mar 5, 2015

He he ! Tricky one !

@avocadowastaken
Copy link

+1 very annoying, need something to close popup after click/enter

@r0b-
Copy link

r0b- commented Mar 6, 2015

+1
(I already added an issue some days ago #1732)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants