Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Conversation

Jefiozie
Copy link
Contributor

@Jefiozie Jefiozie commented Aug 1, 2016

This PR is instead of #1725.

Previously when the closeOnSelect was set to false the resetSearchInput was not executed after selecting a item even when resetSearchInput was set to true.

This fix will always execute the resetSearchInput when set to true even with the closeOnSelect set to false.

I believe this will fix #1484, #1083 , #1384, #777 and is making sure that #1015 is not needed.
@user378230 Did not test #1083 but as I believe will be fixed.

@user378230
Copy link
Contributor

@Jefiozie I noticed that if you click an item it doesn't refocus the search area so you can't type in unless you manually click.

Repro. Steps:

  1. Type text (eg. "Y")
  2. Click Yellow
  3. Try typing... no work 😞

http://plnkr.co/edit/Cc9XuVRwWHWpVYpbIKCs?p=preview

It works if you select with keyboard navigation though

@Jefiozie
Copy link
Contributor Author

Hi @user378230, I see it is not focusing the control . Should it always refocus on the control after selecting a option? Or should this only be done if multiple is enabled?

p.s. the plunker you shared used v 0.13.1 btw

@user378230
Copy link
Contributor

I didn't check single select use case actually but I think it should only refocus in multiple case. (I don't think people use close-on-select=false with single select mode anyway...)

And plunkr is against 0.19.4 I used can to update existing example from someone. 😛

@Jefiozie
Copy link
Contributor Author

Okay I will fix it, when the multipleand'close-on-select=true' are used, the focus will be back at the control when the user has selected a item.

@user378230
Copy link
Contributor

Thanks! If you could make plunkr with fixed version we can double check single select scenario too just to be sure 😃

@Jefiozie
Copy link
Contributor Author

I think this will do? Plunker focus

kboga pushed a commit to kboga/ui-select that referenced this pull request Nov 29, 2016
…angular-ui#1746)

* fix(resetSearchInput) change search box doesn't clear after selecting

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

Successfully merging this pull request may close these issues.

Search box doesn't clear after selecting an option
3 participants