diff --git a/src/element/newElement.ts b/src/element/newElement.ts index 6581097c..b08bac92 100644 --- a/src/element/newElement.ts +++ b/src/element/newElement.ts @@ -265,6 +265,9 @@ export const refreshTextDimensions = ( textElement: ExcalidrawTextElement, text = textElement.text, ) => { + if (textElement.isDeleted) { + return; + } const container = getContainerElement(textElement); if (container) { text = wrapText(