소스 검색

fix: redraw text bounding box when pasting styles (#4845)

Aakansha Doshi 3 년 전
부모
커밋
bd35b682fa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/actions/actionStyles.ts

+ 2 - 2
src/actions/actionStyles.ts

@@ -64,8 +64,8 @@ export const actionPasteStyles = register({
             });
 
             redrawTextBoundingBox(
-              element,
-              getContainerElement(element),
+              newElement,
+              getContainerElement(newElement),
               appState,
             );
           }