Procházet zdrojové kódy

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

Aakansha Doshi před 3 roky
rodič
revize
bd35b682fa
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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,
             );
           }