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

When clicking on an option it disappear #1562

Closed
laantorchaweb opened this issue Sep 18, 2013 · 5 comments · Fixed by #2268
Closed

When clicking on an option it disappear #1562

laantorchaweb opened this issue Sep 18, 2013 · 5 comments · Fixed by #2268

Comments

@laantorchaweb
Copy link
Contributor

I'm having a problem with the latest build from github, not the downloaded version from the site.

In the example file, multi selection dropdown, when holding CTRL and clicking on an option it disappears, but when I open the selection box again the option that I previously selected has the "selected" styled (grey color).

I saw that if I add:

high.addClass("result-selected")

to the line result_select function, just before the item = @results_data it works again.

I don't know if this is the correct behavior or just a bug.

Thanks!

@tjschuck
Copy link
Member

I'm having a problem with the latest build from github, not the downloaded version from the site.

Can you confirm what you mean? Are you manually building it yourself from the source, or using one of the releases on the Releases page? If you're manually building it yourself, what commit are you building against?

@laantorchaweb
Copy link
Contributor Author

I just cloned the repo, npm install.. bundle install and made a grunt build. Opened the public example files and noted this issue.

@tjschuck
Copy link
Member

Thanks for clarifying. Punting to @harvesthq/chosen-developers to confirm whether or not this is a bug.

@laantorchaweb
Copy link
Contributor Author

Something I just noted is that in the prototype version is working as expected. When click on an item (holding ctrl) the item change his color to show that it was selected.

@laantorchaweb
Copy link
Contributor Author

This issue now is on the distributed version, you can test it on the demo site

https://harvesthq.github.io/chosen/

If you go to a multiple select and you hold ctrl (or cmd) for selecting multiple items at once you'll see that the options dissapear as soon as they are clicked. With the PR is working as expected, adding that grey class but not removing the item from the view.

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

Successfully merging a pull request may close this issue.

2 participants