fix: ensures there's no multiple block editors at the same time

This commit is contained in:
Tienson Qin
2025-05-24 22:43:45 +08:00
parent e7ac4d22f0
commit 3a448af06f
4 changed files with 13 additions and 19 deletions

View File

@@ -175,6 +175,7 @@
save-code-editor? true}
:as opts}]
(when (and (not config/publishing?) (:block/uuid block))
(util/mobile-keep-keyboard-open)
(let [repo (state/get-current-repo)]
(p/do!
(when-not (:block.temp/fully-loaded? (db/entity (:db/id block)))