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

Clear current selected value on select-one element #4

Closed
yabab-dev opened this issue Jul 29, 2016 · 4 comments
Closed

Clear current selected value on select-one element #4

yabab-dev opened this issue Jul 29, 2016 · 4 comments
Assignees
Labels
enhancement Pull request that improves existing functionality feature request

Comments

@yabab-dev
Copy link
Contributor

It's more a enhancement than a bug.

Can we have a button to clear current selection on select-one element ?
Like chosen does : https://harvesthq.github.io/chosen/#allow-deselect-on-single-selects

Thanks !

@jshjohnson jshjohnson added the enhancement Pull request that improves existing functionality label Jul 30, 2016
@yabab-dev
Copy link
Contributor Author

Here is a first attempt : yabab-dev@8d7ad12

I don't if you want a PR or if you want to do on your own ?

(associated branch : https://github.com/chymz/Choices/tree/select-one-clear)

@jshjohnson
Copy link
Collaborator

If you didn't pass a placeholder and you cleared the current selection, would you expect the element to be blank?

@yabab-dev
Copy link
Contributor Author

Sorry for the delay, yes :)

@jshjohnson
Copy link
Collaborator

This has now been implemented as of version 1.1.5.

https://github.com/jshjohnson/Choices#removeitembutton

dobrakmato added a commit to dobrakmato/Choices that referenced this issue May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Pull request that improves existing functionality feature request
Projects
None yet
Development

No branches or pull requests

2 participants