-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
JS TypeError: Safari and IE11: Escape doesn't move focus back from the toolbar to the block content #6165
Comments
Yep seems in Safari there's no selection, so See
I guess something similar happens in IE11. Seems |
Tested and confirmed that, when using Safari, pressing Alt+F10 moves focus to the block toolbar and that pressing escape or Alt+F10 again does not return focus to the content area. I also noticed that pressing Tab in Safari returns focus from the block toolbar to content area and that pressing Tab in Firefox moves between different block toolbar options whereas Esc returns the focus to the content area. Video: 20s Error seen in the Safari browser console after pressing Esc while the toolbar has keyboard focus:
Note: since the script source is a React file this may be an upstream bug in React. |
Still a problem in current master 3.8.0-rc.1. Just re-tested in Safari 11.1.2 and getting:
|
Note: this doesn't happen on the TinyMCE demo https://www.tiny.cloud but still happens on current Gutenberg master 4.0. It appears to be something specific to the selection methods used in Gutenberg. |
Fix proposed at #10529 |
Noting this is still a problem and the JS error still happens. This issue was opened 11 months ago. The PR exploring a solution is #10699 and it's now marked as stale. Some higher priority on this would be greatly appreciated. |
Also related to pressing Escape from the toolbar: #11774 |
I believe this behavior was removed with the navigation mode. So closing this issue. |
Noticed while investigating on #6118 / #6163.
When using the keyboard and moving focus from the block content to the toolbar using
Alt+F10
, then pressing Escape is supposed to move focus back from the toolbar to the block content.This works perfectly on Chrome, Firefox, and Edge. It doesn't work on Safari and IE11.
I've quickly seen there's a check for an actual selection and focus is moved back only if there's a selection. I'd suspect the method to get the selection doesn't work with IE11 (not surprisingly) and Safari.
The text was updated successfully, but these errors were encountered: