-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block Editor: Skip focusTabbable if no active element #21361
Conversation
I also fixed a recent issue on |
packages/block-editor/src/components/block-list/block-wrapper.js
Outdated
Show resolved
Hide resolved
Size Change: +4 B (0%) Total Size: 884 kB
ℹ️ View Unchanged
|
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.
Code looks good. I'm not in capacity to test this in IE11 but I'm confident about the changes.
Would that depend on the block, based on what its root element is? A quote block, for example, would have multiple focusable fields, none of which are the root element ( In any case, as you mention, since there always will third-party blocks relying on the current behavior, I think it will need to stick around in one form or another. |
@aduth Right :) I thought about whether using inner blocks for Quote would fix but it's not even the case, we might even need to surface it as an API (opt-in or opt-out) as I can image that some container blocks would want to focus their first textual inner blocks in some cases. |
Fixes #21276
This pull request seeks to resolve an error which occurs in Internet Explorer when pressing Enter whilst a block is selected in Select interaction mode.
For full debugging details, see comment at #21276 (comment) .
Implementation notes:
The changes as proposed follow the second of the two proposed fixes from #21276 (comment) .
Testing Instructions:
Repeat Steps to Reproduce from #21276, verifying that no crash occurs in Internet Explorer.