fix(mobile): delete block doesn't focus on the prev one

This commit is contained in:
Tienson Qin
2025-11-27 23:11:34 +08:00
parent 30c2355c95
commit de4c4bdcb5

View File

@@ -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