Skip to content

Listbox with multi select: prevent opening/closing ListboxOptions when clicking specific element within ListboxButton #3730

Closed Answered by romankoho
romankoho asked this question in Help
Discussion options

You must be logged in to vote

I found the answer. The ListboxOptions opens onPointerDown event and not onClick. So all you have to do is to stopPropagation of the onPointerDown event

https://github.com/tailwindlabs/headlessui/releases/tag/%40headlessui%2Freact%40v2.2.3

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by romankoho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant