0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00

🐛 Fix overlay close from an artboard

This commit is contained in:
Andrés Moya 2023-07-07 10:21:07 +02:00
parent a2d1ce8120
commit e563611c05
2 changed files with 3 additions and 1 deletions

View file

@ -64,6 +64,7 @@
- Fix border radius values with decimals [Taiga #5283](https://tree.taiga.io/project/penpot/issue/5283)
- Fix shortcuts translations not homogenized [Taiga #5141](https://tree.taiga.io/project/penpot/issue/5141)
- Fix overlay manual position in nested boards [Taiga #5135](https://tree.taiga.io/project/penpot/issue/5135)
- Fix close overlay from a nested board [Taiga #5587](https://tree.taiga.io/project/penpot/issue/5587)
### :arrow_up: Deps updates

View file

@ -110,7 +110,8 @@
:close-overlay
(let [dest-frame-id (or (:destination interaction)
(if (= (:type shape) :frame)
(if (and (= (:type shape) :frame)
(some #(= (:id %) (:id shape)) overlays))
(:id shape)
(:frame-id shape)))]
(st/emit! (dv/close-overlay dest-frame-id (:animation interaction))))