MJML already converts numbers into pixels in certain cases. This seems like it could result in a bug where we convert a number to a px for an underlying mjml component that doesn't do the conversion. If possible I'd rather have number be converted to a string instead.
|
if (typeof value === "number" && numberToPixel.includes(name)) { |
|
return `${value}px`; |
|
} |
MJML already converts numbers into pixels in certain cases. This seems like it could result in a bug where we convert a number to a px for an underlying mjml component that doesn't do the conversion. If possible I'd rather have number be converted to a string instead.
mjml-react/src/utils/mjml-component-utils.ts
Lines 67 to 69 in e8befa5