Fix pasting styles on text elements (#833)

pull/834/head
Faustino Kialungila 5 years ago committed by GitHub
parent 2ad0716f3d
commit 2131befd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save