mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
fix: cursor blinks when editing a new block
This commit is contained in:
@@ -369,10 +369,9 @@
|
||||
:else
|
||||
;; take the first dom node
|
||||
(gdom/getElement (str "ls-block-" (:block/uuid block))))]
|
||||
(state/set-editing! "" content block text-range {:ref next-edit-node})
|
||||
(if next-edit-node
|
||||
(do
|
||||
(state/set-editing! "" content block text-range {:ref next-edit-node})
|
||||
(mark-last-input-time! repo))
|
||||
(mark-last-input-time! repo)
|
||||
(util/schedule (fn [] (edit-block-aux repo block content block-node text-range (update opts :retry-times inc))))))))
|
||||
|
||||
(defn edit-block!
|
||||
|
||||
Reference in New Issue
Block a user