Skip to content

Change Select event for opening Content #3104

Answered by SindelarPetr
SindelarPetr asked this question in Help
Discussion options

You must be logged in to vote

Just in case someone would look for the same thing:

I had to use managed open-state in the select and I had to 'disable' onPointerDownCapture capture event and implement onClick instead

<SelectTrigger
  onClick={() => setIsOpen(!isOpen)}
  onPointerDownCapture={(e) => e.preventDefault()}
>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SindelarPetr
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