enhance: safe check input on selectionStart

This commit is contained in:
Tienson Qin
2022-01-19 23:08:50 +08:00
parent 3a2724fb4d
commit 73e0c9968a
5 changed files with 58 additions and 45 deletions

View File

@@ -675,7 +675,7 @@
(defn get-edit-pos
[]
(when-let [input (get-input)]
(.-selectionStart input)))
(util/get-selection-start input)))
(defn set-selection-start-block!
[start-block]