fix: text element should be rendered correctly when pasted to a version before measurements change

This commit is contained in:
Aakansha Doshi 2023-03-17 16:14:46 +05:30
parent 7e330c8ee1
commit c447c4e245

View File

@ -1653,7 +1653,7 @@ class App extends React.Component<AppProps, AppState> {
this.scene.replaceAllElements(nextElements); this.scene.replaceAllElements(nextElements);
newElements.forEach((newElement) => { newElements.forEach((newElement) => {
if (isTextElement(newElement) && isBoundToContainer(newElement)) { if (isTextElement(newElement)) {
const container = getContainerElement(newElement); const container = getContainerElement(newElement);
redrawTextBoundingBox(newElement, container); redrawTextBoundingBox(newElement, container);
} }