mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: don't refresh dimensions for deleted text elements (#6438)
This commit is contained in:
parent
c170403b13
commit
0b8fc4f4b6
1 changed files with 3 additions and 0 deletions
|
@ -265,6 +265,9 @@ export const refreshTextDimensions = (
|
||||||
textElement: ExcalidrawTextElement,
|
textElement: ExcalidrawTextElement,
|
||||||
text = textElement.text,
|
text = textElement.text,
|
||||||
) => {
|
) => {
|
||||||
|
if (textElement.isDeleted) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const container = getContainerElement(textElement);
|
const container = getContainerElement(textElement);
|
||||||
if (container) {
|
if (container) {
|
||||||
text = wrapText(
|
text = wrapText(
|
||||||
|
|
Loading…
Add table
Reference in a new issue