1
0
Эх сурвалжийг харах

fix: click on table property value opens two popups

Tienson Qin 5 сар өмнө
parent
commit
4115457e13

+ 1 - 0
src/main/frontend/components/property/value.cljs

@@ -1158,6 +1158,7 @@
     (if editing?
       (popup-content nil)
       (let [show! (fn [e]
+                    (util/stop e)
                     (let [target (when e (.-target e))]
                       (when-not (or config/publishing?
                                     (util/shift-key? e)

+ 3 - 1
src/main/frontend/components/views.cljs

@@ -757,7 +757,9 @@
      (assoc cell-opts
             :tabIndex 0
             :ref *ref
-            :on-click (fn [] (click-cell (rum/deref *ref)))
+            :on-click (fn [e]
+                        (when-not (dom/has-class? (.-target e) "jtrigger")
+                          (click-cell (rum/deref *ref))))
             :on-key-down (fn [e]
                            (let [container (rum/deref *ref)]
                              (case (util/ekey e)