Skip to content

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

@sebastian-ilari

Description

@sebastian-ilari

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions