-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Suppress block inserter focus loop #33049
Conversation
This introduces a setTimeout to suppress the focus loop issue that was uncovered by the block inserter search focus issue.
Size Change: +421 B (0%) Total Size: 1.05 MB
ℹ️ View Unchanged
|
Admin tests failing, re-running ⏳ |
I gave this a quick test and it does seem to work ok. I do notice a slight delay between inserting a block and the keyboard focus moving to the new block. |
Admin tests still failing, re-running... |
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.
I tested this out in all the scenarios I've run into with the inserter block search input and everything looks good.
Code LGTM 👍
once the tests pass
Awesome! I tested this as well on a physical iPhone 11 device:
All is looking good from my side too. |
Tests are still failing – I updated with the latest from |
Re-requesting a review now that we've addressed a VoiceOver issue that was discovered earlier. |
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.
LGTM, nice catch regarding the screen reader
Re-running the admin tests, 🤞 they pass |
Re-running admin tests for the 5th time. |
Tests passed! 🥳 Merged |
Description
Addresses #30562 (suppresses bug instead of fixing it)
Related to wordpress-mobile/gutenberg-mobile#3681
This introduces a
setTimeout
to suppress the focus loop issue that was uncovered by the block inserter search focus issue.How has this been tested?
npm run start:reset
a. With the cursor in a block that contains text, add a new block via the new block inserter search
b. Ensure that block selection and keyboard focus don't behave unexpectedly
Checklist:
*.native.js
files for terms that need renaming or removal).