Browse Source

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

Aakansha Doshi 3 năm trước cách đây
mục cha
commit
bd35b682fa
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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,
             );
           }