Skip to content

Commit

Permalink
fix: don't refresh dimensions for deleted text elements (excalidraw#6438
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ad1992 authored Apr 10, 2023
1 parent c170403 commit 0b8fc4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/element/newElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ export const refreshTextDimensions = (
textElement: ExcalidrawTextElement,
text = textElement.text,
) => {
if (textElement.isDeleted) {
return;
}
const container = getContainerElement(textElement);
if (container) {
text = wrapText(
Expand Down

0 comments on commit 0b8fc4f

Please sign in to comment.