mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 08:31:39 +02:00
🐛 Update module disappears without applying the changes
This commit is contained in:
parent
15deeacb5e
commit
da5847cc4d
3 changed files with 9 additions and 5 deletions
|
@ -481,6 +481,11 @@
|
|||
on-tab-change
|
||||
(mf/use-fn #(reset! selected-tab* %))
|
||||
|
||||
close-dialog-outside
|
||||
(mf/use-fn (fn [event]
|
||||
(when (= (dom/get-target event) (dom/get-current-target event))
|
||||
(modal/hide!))))
|
||||
|
||||
close-dialog
|
||||
(mf/use-fn (fn [_]
|
||||
(modal/hide!)
|
||||
|
@ -490,7 +495,7 @@
|
|||
(when team-id
|
||||
(st/emit! (dwl/fetch-shared-files {:team-id team-id}))))
|
||||
|
||||
[:div {:class (stl/css :modal-overlay)}
|
||||
[:div {:class (stl/css :modal-overlay) :on-click close-dialog-outside}
|
||||
[:div {:class (stl/css :modal-dialog)}
|
||||
[:button {:class (stl/css :close)
|
||||
:on-click close-dialog}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue