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

open dropdown (probably any modal) from select item - clicking select item will select the item instead of closing the dropdown #2889

Open
alissawix opened this issue May 9, 2024 · 0 comments

Comments

@alissawix
Copy link

Bug report

if I have a dropdown inside a select item (probably true for any modal opened from select item)
then when I click on a select item the select closes and item selected
instead of just dropdown closing

probably happens because pointer-events:auto is set on the select content.

Current Behavior

clicking on select item closes the dropdown, the select and selects the item

Expected behavior

clicking on select item will only close the dropdown, same as if you click anywhere else

Reproducible example

CodeSandbox Template

Suggested solution

Additional context

Your environment

Software Name(s) Version
Radix Package(s) select 2.0.0
React n/a 18.3.1
Browser
Assistive tech
Node n/a
npm/yarn
Operating System
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant