You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 autoFocus. There may be other elements which do no have the autoFocus prop and focus should be inside the Popover, not on a specific element inside of it. Save issue with Dropdown component.
Both Dropdown and Popover should behave like in the example for the landing page of nextui.org, where the focus work as it should.
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: