mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05:00
🐛 Fix cmd+optin+enter when popups blocked
This commit is contained in:
parent
c94478c9bb
commit
fcd29211a4
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@
|
|||
closed-preview (rx/subject)
|
||||
preview (.open js/window "/#/frame-preview")
|
||||
listener-fn #(rx/push! closed-preview true)]
|
||||
(.addEventListener preview "beforeunload" listener-fn)
|
||||
(when (some? preview)
|
||||
(.addEventListener preview "beforeunload" listener-fn))
|
||||
(->> (rx/from-atom (refs/all-children-objects shape-id) {:emit-current-value? true})
|
||||
(rx/take-until closed-preview)
|
||||
(rx/debounce 1000)
|
||||
|
|
Loading…
Add table
Reference in a new issue