Parcourir la source

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

Aakansha Doshi il y a 3 ans
Parent
commit
bd35b682fa
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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,
             );
           }