Title: Variant with different font weights resets text content
Description:
When switching between variants that use different font weights, the text content is reset unexpectedly.
Steps to reproduce:
- Create a component with multiple variants.
- Set different font weights for the text layer in each variant (for example, Regular and Bold).
- Enter custom text in an instance of the component.
- Switch the instance from one variant to another.
Expected behavior: The custom text content should be preserved when changing variants. Only the font weight should change.
Actual behavior: The text content is reset to the default value when switching to a variant with a different font weight.