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

Click twice to get focus in side dialog with react-select used. #3210

Open
JunYang-tes opened this issue Nov 3, 2024 · 0 comments
Open

Click twice to get focus in side dialog with react-select used. #3210

JunYang-tes opened this issue Nov 3, 2024 · 0 comments

Comments

@JunYang-tes
Copy link

Bug report

Current Behavior

Use react-select within dialog of shadcn-ui, after react-select get focused, I need to click other form item (input) twice to focus that.

Expected behavior

Click one time to focus it

Suggested solution

image

here

When react-select lost focus, it's sub-dom changed, this makes container get focused, so it steal focus from the one I clicked.
Can we just ignore the removal inside container?

Your environment

Software Name(s) Version
Radix Package(s) @radix-ui/react-focus-scope ^1.1.0
React n/a 17
Browser Chrome 121.0.6167.139
tech
Node n/a 16
npm/yarn
Operating System linux
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