Explorar o código

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

Aakansha Doshi %!s(int64=3) %!d(string=hai) anos
pai
achega
bd35b682fa
Modificáronse 1 ficheiros con 2 adicións e 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,
             );
           }