0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

🐛 Fix create interactions with nested frames

This commit is contained in:
alonso.torres 2024-02-15 17:16:59 +01:00
parent 619b557c80
commit 74e57c00af

View file

@ -208,7 +208,10 @@
from-frame-id (if (cfh/frame-shape? from-shape) from-frame-id (if (cfh/frame-shape? from-shape)
from-id (:frame-id from-shape)) from-id (:frame-id from-shape))
target-frame (ctst/get-frame-by-position objects position)] target-frame
(->> (ctst/get-frames-by-position objects position)
(remove :hide-in-viewer)
(last))]
(when (and (not= (:id target-frame) uuid/zero) (when (and (not= (:id target-frame) uuid/zero)
(not= (:id target-frame) from-frame-id)) (not= (:id target-frame) from-frame-id))