fix: keep keyboard open when deleting block

This commit is contained in:
Tienson Qin
2025-06-03 20:53:40 +08:00
parent 433a5405fc
commit 942f64b45f

View File

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