fix: template auto-complete

This commit is contained in:
Tienson Qin
2022-08-16 13:11:31 +08:00
parent 1a4ad3a4b7
commit e04e4d7914

View File

@@ -35,6 +35,7 @@
(let [target (.. e -target)]
;; If the click target is outside of current node
(when (and
(if (state/editing?) (not (util/input? dom-node)) true)
(not (dom/contains dom-node target))
(not (.contains (.-classList target) "ignore-outside-event")))
(on-hide state e :click))))]