Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lost focus after removing a selected option on multiselect mode #2429

Closed
sebastian-ilari opened this issue Sep 23, 2015 · 2 comments · Fixed by #2710
Closed

Lost focus after removing a selected option on multiselect mode #2429

sebastian-ilari opened this issue Sep 23, 2015 · 2 comments · Fixed by #2710

Comments

@sebastian-ilari
Copy link

Hello guys, I did a quick search and haven't found this bug raised but apologies in advance if it is already there and I missed it.

Steps to reproduce

  • Click on the empty box
  • Select an item
  • Type one character
  • Remove the selected item by clicking on the X

Expected result: the user is able to type a new filter. Maybe also the options panel can be collapsed

Actual result: the focus is lost so the user is not able to type a new filter, the only way to use the control again is by clicking somewhere else on the page

This issue can be reproduced on the multiple select version of the demo page https://harvesthq.github.io/chosen/

I have noticed a slight difference between browsers:

On Chrome clicking on the empty input doesn't return the focus back to the control although on IE it does

Thanks!!!

@tjschuck
Copy link
Member

@sebastian-ilari Seems legit! Thanks for the report -- I can reproduce.

However, the last bit:

On Chrome clicking on the empty input doesn't return the focus back to the control

That's actually not true -- you're just clicking too far to the right :) You just re-found #1729. If you click a bit further to the left, it will re-focus as expected.

@sebastian-ilari
Copy link
Author

Thanks for the prompt response TJ and you are right about the re-found :)

@koenpunt koenpunt added the Bug label Oct 1, 2016
koenpunt added a commit to koenpunt/chosen that referenced this issue Oct 1, 2016
koenpunt added a commit to koenpunt/chosen that referenced this issue Oct 1, 2016
koenpunt added a commit that referenced this issue Oct 16, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants