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

onPointerDownOutside not working correctly in shadow DOM, select reopening if clicked on trigger while opened #3146

Open
1 of 3 tasks
ivancuric opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@ivancuric
Copy link

ivancuric commented Dec 16, 2024

Description

If a select component is rendered inside a shadow root, the pointer.down custom event is emitted incorrectly. Both the target and currentTarget properties are the same - the listbox, regardless if you click on the button or outside the listbox.

This results in the listbox not being able to be closed when clicking on the trigger.

I can mitigate this by using this hack:
image

Link to Reproduction (or Detailed Explanation)

https://stackblitz.com/edit/solidjs-ark-shadow-root?file=src%2FApp.tsx

Steps to Reproduce

try the repro

Ark UI Version

4.5

Framework

  • React
  • Solid
  • Vue

Additional Information

Related issues:
#2716

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant