Create Pattern Modal: Tab focus is lost #66571
Labels
Needs Testing
Needs further testing to be confirmed.
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
The "Add New Pattern" modal allows us to select a pattern category that is rendered by the
FormTokenField
component.When I press the tab key in this pattern category, I would expect the "Synced" toggle to get focus, but instead the modal disappears and focus is lost.
I have not been able to identify the cause, but I suspect it might be an issue that occurs when the Modal component and the FormTokenField component are used together.
This issue appears to have occurred since WP 6.4, when pattern categories were implemented.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
6c136c876db49007bb40539666fbec71.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: