mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 20:11:42 +02:00
🐛 Fix swap slot is not removed on parent detach
This commit is contained in:
parent
5fef0b64f4
commit
7c64ed84f1
1 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,10 @@
|
||||||
; If the initial shape was component-root, first level subinstances are converted in top instances
|
; If the initial shape was component-root, first level subinstances are converted in top instances
|
||||||
(pcb/update-shapes [shape-id] #(assoc % :component-root true))
|
(pcb/update-shapes [shape-id] #(assoc % :component-root true))
|
||||||
|
|
||||||
|
component-root?
|
||||||
|
; If the initial shape was component-root, first level subinstances can't have swap-slot
|
||||||
|
(pcb/update-shapes [shape-id] ctk/remove-swap-slot)
|
||||||
|
|
||||||
:always
|
:always
|
||||||
; Near shape-refs need to be advanced one level
|
; Near shape-refs need to be advanced one level
|
||||||
(generate-advance-nesting-level nil container libraries (:id shape)))
|
(generate-advance-nesting-level nil container libraries (:id shape)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue