fix: nil check

pull/6967/head
Tienson Qin 2022-10-13 00:25:48 +08:00
parent f8b495aca5
commit 35770a4885
1 changed files with 6 additions and 4 deletions

View File

@ -48,8 +48,8 @@
(fn [a]
(cond
(keyword? a)
(cond-> (name a)
camel-case?
(cond-> (name a)
camel-case?
(csk/->camelCase))
(uuid? a) (str a)
@ -431,12 +431,14 @@
(fn [content]
(when-let [input-id (state/get-edit-input-id)]
(commands/simple-insert! input-id content {})
(.focus (gdom/getElement input-id)))))
(when-let [input (gdom/getElement input-id)]
(.focus input)))))
(def ^:export restore_editing_cursor
(fn []
(when-let [input-id (state/get-edit-input-id)]
(.focus (gdom/getElement input-id)))))
(when-let [input (gdom/getElement input-id)]
(.focus input)))))
(def ^:export get_editing_cursor_position
(fn []