From 608cffe997e8be8f80318d20875cf19fe4a47733 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Mon, 1 Dec 2025 18:20:18 +0800 Subject: [PATCH] fix: stop backspace event --- src/main/frontend/handler/editor.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index e968ada781..01c4e5ba13 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -2855,7 +2855,7 @@ (let [^js input (state/get-input) current-pos (cursor/pos input)] (when (zero? current-pos) - (when e (.preventDefault e)) + (util/stop e) (let [repo (state/get-current-repo) block* (state/get-edit-block) block (db/entity (:db/id block*))