-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Labels
Browser IssuesIssues or PRs that are related to browser specific problemsIssues or PRs that are related to browser specific problems[Priority] HighUsed to indicate top priority items that need quick attentionUsed to indicate top priority items that need quick attention[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Describe the bug
On IE11, with a block selected and with the editor in select mode, pressing Enter to switch to edit mode causes the editor to crash with the following error message:
TypeError: Unable to get property 'closest' of undefined or null reference
at vi (http://isabel:8888/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=4af3ae3fe13f697ebe49daa5a278cc59:49:122078)
at Anonymous function (http://isabel:8888/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=4af3ae3fe13f697ebe49daa5a278cc59:49:142265)
at Anonymous function (http://isabel:8888/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=4af3ae3fe13f697ebe49daa5a278cc59:49:142254)
at commitHookEffectList (http://isabel:8888/wp-includes/js/dist/vendor/react-dom.js?ver=16.9.0:20124:9)
at commitPassiveHookEffects (http://isabel:8888/wp-includes/js/dist/vendor/react-dom.js?ver=16.9.0:20154:11)
at callCallback (http://isabel:8888/wp-includes/js/dist/vendor/react-dom.js?ver=16.9.0:341:9)
The console also reports:
The above error occurred in the <ForwardRef> component:
in ForwardRef (created by ForwardRef)
in ForwardRef
in Unknown (created by t)
in t (created by WithInstanceId(t))
in WithInstanceId(t) (created by WithSpokenMessages(WithInstanceId(t)))
in WithSpokenMessages(WithInstanceId(t))
in Unknown (created by Context.Consumer)
in WithBlockEditContext(Component) (created by t)
in t
in Unknown (created by WithSafeTimeout(Component))
in WithSafeTimeout(Component) (created by ForwardRef)
in ForwardRef (created by ForwardRef(e))
in ForwardRef(e)
in Unknown
in Unknown (created by WithToolbarControls(Component))
in WithToolbarControls(Component) (created by WithInspectorControl(WithToolbarControls(Component)))
in WithInspectorControl(WithToolbarControls(Component)) (created by WithInspectorControl(WithInspectorControl(WithToolbarControls(Component))))
in WithInspectorControl(WithInspectorControl(WithToolbarControls(Component))) (created by WithToolba
To reproduce
Steps to reproduce the behavior:
- On IE11, navigate to a post in the editor.
- With a block selected, press Esc to switch select mode, then press Enter to switch back to edit mode
- See error
Expected behavior
Expected all keyboard shortcuts to work correctly.
Metadata
Metadata
Assignees
Labels
Browser IssuesIssues or PRs that are related to browser specific problemsIssues or PRs that are related to browser specific problems[Priority] HighUsed to indicate top priority items that need quick attentionUsed to indicate top priority items that need quick attention[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended