diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 26b2336d0..36bcda1bb 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,6 +6,7 @@ - `Fix` - Fix selection of first block in read-only initialization with "autofocus=true" - `Fix` - Incorrect caret position after blocks merging in Safari - `Fix` - Several toolbox items exported by the one tool have the same shortcut displayed in toolbox +- `Fix` - Fixed BackSpace not working on CodeBlock with initial data ### 2.30.6 diff --git a/src/components/dom.ts b/src/components/dom.ts index e61269f36..bf199f6a8 100644 --- a/src/components/dom.ts +++ b/src/components/dom.ts @@ -227,7 +227,7 @@ export default class Dom { const child = atLast ? 'lastChild' : 'firstChild', sibling = atLast ? 'previousSibling' : 'nextSibling'; - if (node && node.nodeType === Node.ELEMENT_NODE && node[child]) { + if (node && node.nodeType === Node.ELEMENT_NODE && node[child] && !Dom.isNativeInput(node)) { let nodeChild = node[child] as Node; /**