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

Tabindex not workin on sheet #2989

Open
imtaxu opened this issue Jul 2, 2024 · 1 comment
Open

Tabindex not workin on sheet #2989

imtaxu opened this issue Jul 2, 2024 · 1 comment

Comments

@imtaxu
Copy link

imtaxu commented Jul 2, 2024

Hi there,

When using react-select components with react-hook-form inside a Radix UI Sheet or Modal, the tabindex does not work.

Would you please see CodeSandbox Demo

The expected behavior is that after selecting a color, pressing the tab key should move the focus to the size input, but instead, it selects the sheet component. The tab key does not move the focus to the size input or button at all.

Software Name(s) Version
Radix Package(s) "@radix-ui/react-dialog" "^1.1.1"
Radix Package(s) "@radix-ui/react-label" "^2.1.0"
Radix Package(s) "@radix-ui/react-slot" "^1.1.0"
@dan-ville
Copy link

I'm dealing with this on my team as well, and incidentally this has been an open issue in react-select's github as well JedWatson/react-select#5931

Basically the sheet's dialog element has a tabIndex="-1". If you remove that, the tabbing works properly.

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

2 participants