mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: mobile check
This commit is contained in:
@@ -1549,9 +1549,7 @@ Arg *stop: atom, reset to true to stop the loop"
|
||||
([]
|
||||
(mobile-keep-keyboard-open true))
|
||||
([schedule?]
|
||||
(when mobile?
|
||||
(let [f #(let [node (gdom/getElement "app-keep-keyboard-open-input")]
|
||||
(if node
|
||||
(.focus node)
|
||||
(prn :debug :error "can't find keyboard open input")))]
|
||||
(when (mobile?)
|
||||
(let [f #(when-let [node (gdom/getElement "app-keep-keyboard-open-input")]
|
||||
(.focus node))]
|
||||
(if schedule? (schedule f) (f)))))))
|
||||
|
||||
Reference in New Issue
Block a user