From ee6c3e936062d03ae564ad51f893191b906ac918 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 11 Mar 2025 09:32:36 +0800 Subject: [PATCH] enhance(ux): up/down to hide action bar --- src/main/frontend/components/property.cljs | 2 +- src/main/frontend/handler/editor.cljs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/components/property.cljs b/src/main/frontend/components/property.cljs index abb61502ee..4339a626f7 100644 --- a/src/main/frontend/components/property.cljs +++ b/src/main/frontend/components/property.cljs @@ -322,7 +322,7 @@ (:block/title property)] (property-key-title block property class-schema?))])) -(rum/defcs property-input < rum/reactive +(rum/defcs ^:large-vars/cleanup-todo property-input < rum/reactive (rum/local nil ::ref) (rum/local false ::show-new-property-config?) (rum/local false ::show-class-select?) diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index 7d4b941aec..1b84e33339 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -3390,6 +3390,7 @@ (defn shortcut-up-down [direction] (fn [e] + (state/pub-event! [:editor/hide-action-bar]) (when (and (not (auto-complete?)) (or (in-page-preview?) (not (in-shui-popup?)))