fix: move prevent default in before

This commit is contained in:
Weihua Lu
2021-04-30 22:22:56 +08:00
parent 747bfd9db0
commit 0ae0634d04
5 changed files with 34 additions and 30 deletions

View File

@@ -2131,7 +2131,9 @@
;; just delete
:else
(state/set-edit-content! (state/get-edit-input-id) (.-value input)))))
(do
(util/stop e)
(delete-and-update input (dec current-pos) current-pos)))))
;; TODO: merge indent-on-tab, outdent-on-shift-tab, on-tab
(defn indent-on-tab