[bug]: tabindex of form inputs leaks out to Sheet
Author: pmualabaCreated Jan 19, 2025Updated Sep 16, 2026
Labelsbugstale?
Describe the bug
When i put a Form inside a Sheet, the Form inputs tabindex leaks out to the Sheet component.
When i put the same form outside the Sheet, tabindex works as intended.
Affected component/components
Sheet
How to reproduce
When i put a Form inside a Sheet, the Form inputs tabindex leaks out to the Sheet component.
When i put the same form outside the Sheet, tabindex works as intended.
Codesandbox/StackBlitz link
No response
Logs
System Info
Chrome OSX
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Source: shadcn-ui/ui