fix: safe setrangetext

This commit is contained in:
Tienson Qin
2021-12-09 21:25:05 +08:00
parent 66aab58ba9
commit 5c2ad1816f
2 changed files with 20 additions and 7 deletions

View File

@@ -2604,7 +2604,7 @@
(cursor/move-cursor-forward input))))))
(defn- delete-and-update [^js input start end]
(.setRangeText input "" start end)
(util/safe-set-range-text! input "" start end)
(state/set-edit-content! (state/get-edit-input-id) (.-value input)))
(defn- delete-concat [current-block]