mirror of
https://github.com/penpot/penpot.git
synced 2026-05-02 22:58:35 +00:00
Merge pull request #3846 from penpot/hiru-components-bugfix2
🐛 Fix pasting a nested copy outside a component
This commit is contained in:
commit
1adad4dbbc
@ -468,6 +468,10 @@
|
||||
(cond-> into-component?
|
||||
(dissoc :component-root))
|
||||
|
||||
(cond-> (and (ctk/instance-head? obj)
|
||||
(not into-component?))
|
||||
(assoc :component-root true))
|
||||
|
||||
(cond-> (or frame? group? bool?)
|
||||
(assoc :shapes []))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user