-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] - Focus remain outside Popover component #2992
Comments
You could make use of
|
This may be a workaround, but I think this is still a bug. The focus should move by default into the popover as mentioned in the docs, in the Accessibility section. Also, this is a specific case, where we have an Input and we can use Both |
I second that. Without explicitly setting autofocus, focus should be moved into the popover on mount and restored to the trigger element on unmount. |
NextUI Version
2.3.6
Describe the bug
When the popover is opened via mouse click or keyboard, the focus remains outside of the popover, instead of moving inside the Popover, as mentioned in the docs.
Your Example Website or App
https://nextui.org/docs/components/popover#with-form
Steps to Reproduce the Bug or Issue
To reproduce the issue check Popover with form example from official docs by:
Cusomize
button.Tab
key is pressed, the focus is outside the popover and other elements are being focused.Expected behavior
The focus should be move inside the Popover. When
Tab
is pressed,Width
input should get focused.Screenshots or Videos
Operating System Version
Windows
Browser
Firefox
The text was updated successfully, but these errors were encountered: