Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude disabled buttons when setting initialIndex of NavigableToolbar (
#57280) * Exclude disabled buttons when setting initial focus on toolbar When the first item was disabled, it was causing the last item of the toolbar to be focused because the the toolbar was trying to focus a disabled button. This updates the check to only include focusable buttons so we do not try to send focus to an unfocusable button. * Change getAllToolbarItemsIn to getAllFocusableToolbarItemsIn for clarity
- Loading branch information
05b7175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in 05b7175.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7288051617
📝 Reported issues:
specs/editor/various/block-switcher.test.js