mirror of
https://github.com/logseq/logseq.git
synced 2026-05-26 21:54:26 +00:00
fix: click on table property value opens two popups
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user