From bd35b682fa0fdb66c8a75fe8c1d888e3fa97691e Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Fri, 25 Feb 2022 15:36:56 +0530 Subject: [PATCH] fix: redraw text bounding box when pasting styles (#4845) --- src/actions/actionStyles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ); }