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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment