diff --git a/package.json b/package.json index 1f50fbd..6bcb7ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/list", - "version": "2.0.3", + "version": "2.0.4", "keywords": [ "codex editor", "list", diff --git a/src/ListTabulator/index.ts b/src/ListTabulator/index.ts index 277b018..acb7cce 100644 --- a/src/ListTabulator/index.ts +++ b/src/ListTabulator/index.ts @@ -533,6 +533,13 @@ export default class ListTabulator { return; } + /** + * If backspace is pressed with selection, it should be handled as usual + */ + if (window.getSelection()?.isCollapsed === false) { + return; + } + /** * Prevent Editor.js backspace handling */