diff --git a/src/actions/actionStyles.ts b/src/actions/actionStyles.ts index 57c6b3d3..3244321a 100644 --- a/src/actions/actionStyles.ts +++ b/src/actions/actionStyles.ts @@ -64,8 +64,8 @@ export const actionPasteStyles = register({ }); redrawTextBoundingBox( - element, - getContainerElement(element), + newElement, + getContainerElement(newElement), appState, ); }