From 1a71ae3cf5d2b5b4dffbf3122bc24e03f4094234 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 29 Nov 2023 18:02:41 +0900 Subject: [PATCH 1/2] Prevent duplicated event in Chinese, Japanese and Korean languages --- src/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.js b/src/index.js index a031ebef..aba7b72c 100644 --- a/src/index.js +++ b/src/index.js @@ -459,6 +459,13 @@ export default class NestedList { */ event.preventDefault(); + /** + * Prevent duplicated event in Chinese, Japanese and Korean languages + */ + if (event.isComposing) { + return; + } + /** * On Enter in the last empty item, get out of list */ From 432301f105a060d3ce2be7e05839fff9557a72ba Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 29 Nov 2023 23:24:06 +0900 Subject: [PATCH 2/2] bump up minor version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 71cd8d76..80e73cbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/nested-list", - "version": "1.4.1", + "version": "1.4.2", "keywords": [ "codex editor", "nested-list",