mirror of
https://github.com/logseq/logseq.git
synced 2026-05-20 19:02:23 +00:00
fix(mobile): delete block doesn't focus on the prev one
This commit is contained in:
@@ -87,13 +87,8 @@
|
||||
|
||||
(when-not (:graph/importing @state/state)
|
||||
|
||||
(let [edit-block-f @(:editor/edit-block-fn @state/state)
|
||||
delete-blocks? (and (= (:outliner-op tx-meta) :delete-blocks)
|
||||
(:local-tx? tx-meta)
|
||||
(not (:mobile-action-bar? tx-meta)))]
|
||||
(let [edit-block-f @(:editor/edit-block-fn @state/state)]
|
||||
(state/set-state! :editor/edit-block-fn nil)
|
||||
(when delete-blocks?
|
||||
(util/mobile-keep-keyboard-open))
|
||||
(when-not (:skip-refresh? tx-meta)
|
||||
(react/refresh! repo affected-keys))
|
||||
(when edit-block-f
|
||||
|
||||
Reference in New Issue
Block a user