fix: don't refresh dimensions for deleted text elements (#6438)

This commit is contained in:
Aakansha Doshi 2023-04-10 16:31:58 +05:30 committed by GitHub
parent c170403b13
commit 0b8fc4f4b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,6 +265,9 @@ export const refreshTextDimensions = (
textElement: ExcalidrawTextElement,
text = textElement.text,
) => {
if (textElement.isDeleted) {
return;
}
const container = getContainerElement(textElement);
if (container) {
text = wrapText(