Browse Source

fix: stop backspace event

Tienson Qin 2 days ago
parent
commit
608cffe997
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
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*))