From 3e77b53b91e7ea1230cfe52687c1535ef7743d6b Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Thu, 9 May 2024 16:40:58 +0800 Subject: [PATCH] fix: add page type property value --- .../frontend/components/property/value.cljs | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main/frontend/components/property/value.cljs b/src/main/frontend/components/property/value.cljs index 3734bd502..6b1eb17ad 100644 --- a/src/main/frontend/components/property/value.cljs +++ b/src/main/frontend/components/property/value.cljs @@ -96,11 +96,10 @@ (exit-edit-property)))))) (defn- add-or-remove-property-value - [block property value selected? page?] + [block property value selected?] (let [many? (db-property/many? property)] (if selected? - (let [value' (if page? (:block/uuid (db/entity value)) value)] - (> selected-choices' @@ -817,13 +816,12 @@ [:div.multi-values.jtrigger {:tab-index "0" :ref *el - :on-click (fn [^js e] - (when-not (.closest (.-target e) ".select-item") - (if config/publishing? - nil - (shui/popup-show! (rum/deref *el) content-fn - {:as-dropdown? true :as-content? false - :align "start" :auto-focus? true})))) + :on-click (fn [^js _e] + (if config/publishing? + nil + (shui/popup-show! (rum/deref *el) content-fn + {:as-dropdown? true :as-content? false + :align "start" :auto-focus? true}))) :on-key-down (fn [^js e] (case (.-key e) (" " "Enter")