Browse Source

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

Aakansha Doshi 3 years ago
parent
commit
bd35b682fa
1 changed files with 2 additions and 2 deletions
  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,
             );
           }