mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 16:16:11 +02:00
🐛 Fix closing of thumbnails panel in view mode
This commit is contained in:
parent
b534f5b736
commit
1773de88f5
7 changed files with 14 additions and 8 deletions
|
@ -171,6 +171,12 @@
|
|||
:edition true
|
||||
:menu-open false)))]
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps selected? local)
|
||||
(fn []
|
||||
(when (and (not selected?) (:menu-open @local))
|
||||
(swap! local assoc :menu-open false))))
|
||||
|
||||
[:div.grid-item.project-th {:class (dom/classnames
|
||||
:selected selected?)
|
||||
:ref item-ref
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue