소스 검색

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

Aakansha Doshi 2 년 전
부모
커밋
c447c4e245
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
       }