mirror of https://github.com/logseq/logseq
Merge remote-tracking branch 'upstream/master' into whiteboards
commit
89daddaeba
|
@ -35,6 +35,7 @@
|
||||||
(let [target (.. e -target)]
|
(let [target (.. e -target)]
|
||||||
;; If the click target is outside of current node
|
;; If the click target is outside of current node
|
||||||
(when (and
|
(when (and
|
||||||
|
(if (state/editing?) (not (util/input? dom-node)) true)
|
||||||
(not (dom/contains dom-node target))
|
(not (dom/contains dom-node target))
|
||||||
(not (.contains (.-classList target) "ignore-outside-event")))
|
(not (.contains (.-classList target) "ignore-outside-event")))
|
||||||
(on-hide state e :click))))]
|
(on-hide state e :click))))]
|
||||||
|
|
Loading…
Reference in New Issue