Browse Source

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

Aakansha Doshi 2 years ago
parent
commit
c447c4e245
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/App.tsx

+ 1 - 1
src/components/App.tsx

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