Select trigger steals focus on inputs in content, in a dialog #1555
rogerfar
started this conversation in
Feature Requests / Ideas
Replies: 2 comments
-
Select's currently don't support inputs within them, as the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Makes sense! But what makes it works outside a dialog but not inside a dialog? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
If you have a dialog that contains a Select component, and that select component contains an input field, you cannot focus on that input field.
Inspecting the onblur event of the input it looks like the trigger button traps the focus.
This behaviour does not occur when the select is not in a dialog.
Reproduction
https://stackblitz.com/edit/shadcn5-repro-template-cy1zb9rc
Logs
System Info
Severity
annoyance
Beta Was this translation helpful? Give feedback.
All reactions