mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
fix: safe setrangetext
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user