From d45f0ea3e0768cc3d210cc8cd12ba98bac90540a Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 2 Dec 2025 22:51:28 +0800 Subject: [PATCH] fix: editor toolbar should be hidden when exit capture --- src/main/mobile/components/popup.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/mobile/components/popup.cljs b/src/main/mobile/components/popup.cljs index c0aad1f080..c6829ba802 100644 --- a/src/main/mobile/components/popup.cljs +++ b/src/main/mobile/components/popup.cljs @@ -52,15 +52,16 @@ (editor-handler/quick-add-open-last-block!)) dismissing? - (do - (when (mobile-state/quick-add-open?) - (when-let [tab @mobile-state/*tab] - (mobile-state/set-tab! tab))) + (let [capture? (mobile-state/quick-add-open?)] (when (some? @mobile-state/*popup-data) (p/do! (mobile-state/set-popup! nil) (reset! *last-popup-data nil) - (state/pub-event! [:mobile/clear-edit])))) + (.dismiss ^js mobile-util/native-editor-toolbar) + (state/pub-event! [:mobile/clear-edit]) + (when capture? + (when-let [tab @mobile-state/*tab] + (mobile-state/set-tab! tab)))))) :else nil)))