mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 23:19:38 +00:00
comment on setTimeout in undo
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
(let [{:keys [editor-cursor app-state]} (undo-redo/undo)]
|
||||
(restore-cursor! editor-cursor)
|
||||
(restore-app-state! app-state))
|
||||
;; ugly timeout: avoid save block from frontend.handler.editor.lifecycle/will-unmount
|
||||
(js/setTimeout #(state/set-editor-op! nil) 100))
|
||||
|
||||
(defn redo!
|
||||
|
||||
Reference in New Issue
Block a user