fix: click on table property value opens two popups

This commit is contained in:
Tienson Qin
2025-05-06 22:36:47 +08:00
parent 39c8a9752c
commit 4115457e13
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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)