mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
transform-in-variant (Ctrl+K on a component) runs a chain of events, each one committing its own changes. It set the variant-id on the main instance before setting it on the component, so the shape validation of that step saw them out of sync and rejected the change. The next steps then failed too, as the main instance was never a variant. Set the variant-id on the component first, and give the main instance an empty variant-name, which is what the validator expects while the variant has no properties yet. AI-assisted-by: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>