Explorar el Código

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

Aakansha Doshi hace 3 años
padre
commit
bd35b682fa
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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,
             );
           }