fix(editor): backspace for emoji char

This commit is contained in:
charlie
2022-01-08 18:06:16 +08:00
committed by Andelf
parent 86c7e6310a
commit 33fbb0aa1b
4 changed files with 29 additions and 2 deletions

View File

@@ -2890,7 +2890,8 @@
:else
(do
(util/stop e)
(delete-and-update input (dec current-pos) current-pos)))))
(delete-and-update
input (util/safe-dec-current-pos-from-end (.-value input) current-pos) current-pos)))))
(defn indent-outdent
[indent?]