diff --git a/src/plugins/core.js b/src/plugins/core.js index 5f116e548..fd8ab42b3 100644 --- a/src/plugins/core.js +++ b/src/plugins/core.js @@ -493,13 +493,13 @@ function Plugin(options = {}) { if (state.isExpanded) return const { document, startText } = state - const hasVoidParent = document.hasVoidParent(startText) + const hasVoidParent = document.hasVoidParent(startText.key) if ( startText.text == '' || hasVoidParent ) { - const previousText = document.getPreviousText(startText) + const previousText = document.getPreviousText(startText.key) if (!previousText) return debug('onKeyDownLeft', { data })