Fix text disappearing when unchecking curved text
- Initialize curvedPath: null when creating text elements - Ensures all text elements have the curvedPath property from creation - Prevents text loss when toggling curved text on/off - Text content is now properly preserved when switching between curved and straight Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
8ec34a60c9
commit
469ea49374
@@ -630,6 +630,7 @@ export default function DesignCanvas({ product }: { product: ProductDTO }) {
|
|||||||
fontFamily: 'Fraunces',
|
fontFamily: 'Fraunces',
|
||||||
fontSize: 28,
|
fontSize: 28,
|
||||||
fill: '#17181C',
|
fill: '#17181C',
|
||||||
|
curvedPath: null,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
setSelectedId(id);
|
setSelectedId(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user