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 the selected item in a non-multiple Select #711

Closed
arnolicious opened this issue Oct 1, 2024 · 1 comment · May be fixed by #469
Closed

Deselect the selected item in a non-multiple Select #711

arnolicious opened this issue Oct 1, 2024 · 1 comment · May be fixed by #469
Labels
Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.

Comments

@arnolicious
Copy link

Describe the feature in detail (code, mocks, or screenshots encouraged)

It would be really helpful to be able to control the click behaviour when an already selected item gets clicked.
At the moment,, when a selected item in a non-multiple select gets clicked again, the Select just closes and the item stays selected.

There are a lot of use cases, where you'd want to allow the users to deselect their selection, just like when clicking on an selected item in a multiple select.

I saw that there was the same request in the Melt UI Repo: melt-ui/melt-ui#840

However I am quite new to Bits UI and couldn't manage to hook into the Melt UI builder to implement the proposed workaround.

What type of pull request would this be?

Enhancement

Provide relevant links or additional information.

No response

@huntabyte huntabyte added the Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5. label Oct 2, 2024
@huntabyte huntabyte mentioned this issue Oct 2, 2024
3 tasks
@huntabyte
Copy link
Owner

Closing as fixed in bits-ui@next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants