瀏覽代碼

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

Aakansha Doshi 3 年之前
父節點
當前提交
bd35b682fa
共有 1 個文件被更改,包括 2 次插入2 次删除
  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,
             );
           }