mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 07:37:35 +02:00
🎉 Move files to other projects and teams
This commit is contained in:
parent
6a345c4b8a
commit
c6765a48c5
10 changed files with 290 additions and 70 deletions
|
@ -17,12 +17,13 @@
|
|||
|
||||
on-click
|
||||
(fn [event]
|
||||
(if ref
|
||||
(let [target (dom/get-target event)
|
||||
parent (mf/ref-val ref)]
|
||||
(when-not (or (not parent) (.contains parent target))
|
||||
(on-close)))
|
||||
(on-close)))
|
||||
(let [target (dom/get-target event)]
|
||||
(when-not (.-data-no-close ^js target)
|
||||
(if ref
|
||||
(let [parent (mf/ref-val ref)]
|
||||
(when-not (or (not parent) (.contains parent target))
|
||||
(on-close)))
|
||||
(on-close)))))
|
||||
|
||||
on-keyup
|
||||
(fn [event]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue