Fix pasting styles on text elements (#833)
This commit is contained in:
parent
2ad0716f3d
commit
2131befd7a
@ -43,7 +43,7 @@ export const actionPasteStyles: Action = {
|
||||
roughness: pastedElement?.roughness,
|
||||
};
|
||||
if (isTextElement(newElement)) {
|
||||
newElement.font = pastedElement?.font;
|
||||
newElement.font = pastedElement?.font || "20px Virgil";
|
||||
redrawTextBoundingBox(newElement);
|
||||
}
|
||||
return newElement;
|
||||
|
Loading…
x
Reference in New Issue
Block a user