Fix pasting styles on text elements (#833)

This commit is contained in:
Faustino Kialungila 2020-02-24 15:35:56 +01:00 committed by GitHub
parent 2ad0716f3d
commit 2131befd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;