mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 06:04:23 +00:00
fix: keep keyboard open when deleting block
This commit is contained in:
@@ -79,8 +79,11 @@
|
||||
|
||||
(when-not (:graph/importing @state/state)
|
||||
|
||||
(let [edit-block-f @(:editor/edit-block-fn @state/state)]
|
||||
(let [edit-block-f @(:editor/edit-block-fn @state/state)
|
||||
delete-blocks? (= (:outliner-op tx-meta) :delete-blocks)]
|
||||
(state/set-state! :editor/edit-block-fn nil)
|
||||
(when delete-blocks?
|
||||
(util/mobile-keep-keyboard-open))
|
||||
(react/refresh! repo affected-keys)
|
||||
(when edit-block-f
|
||||
(util/schedule edit-block-f)))
|
||||
|
||||
Reference in New Issue
Block a user