fix: stop backspace event

This commit is contained in:
Tienson Qin
2025-12-01 18:20:18 +08:00
parent 28c397e894
commit 608cffe997

View File

@@ -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*))