Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

deselect on single selects updates display but not underlying option's selected state #2993

Open
fchierad opened this issue Jun 4, 2018 · 2 comments

Comments

@fchierad
Copy link

fchierad commented Jun 4, 2018

Chosen 1.8.5 on sample page at https://harvesthq.github.io/chosen/#allow-deselect-on-single-selects , Windows 7 32 bits + Chrome 66.
deselect on single selects updates display but not underlying option's selected state

Steps to reproduce

  1. Go to https://harvesthq.github.io/chosen/#allow-deselect-on-single-selects

  2. Click on the x to de-select "Sloth bear"

  3. Once the UI no longer displays "Sloth bear", right-click on the control and select "Inspect"

  4. Expand the select html under the div whose class="side-by-side clearfix", notice that the option with "Sloth bear" is still selected.

Expected behavior

option element's 'selected' value should be removed.

Actual behavior

option element's 'selected' value stayed selected.

Environment

  • Chosen Version: Chosen 1.8.5

  • jQuery or Prototype Version: JQuery 3.2.1 min

  • Browser and Version: Chrome 66

  • OS and Version: Windows 7 home, 32 bits

Additional information:

paste of the HTML after clicking the X and seeing Sloth bear being de-selected:

American Black Bear Asiatic Black Bear Brown Bear Giant Panda Sloth Bear Sun Bear Polar Bear Spectacled Bear
@Archetipo95
Copy link

Same problem here... @fchierad did u find a solution?

@fchierad
Copy link
Author

Hi, never found a solution and the underlying framework I had to use required the underlying pieces to be updated. Had to drop chosen for that project and use a different framework.

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

No branches or pull requests

2 participants