If size is specified together with a read only style the component breaks.
The code bellow will produce this error: Cannot assign to read only property 'width' of object '#<Object>' icon
App.tsx
const fixedStyle = { color: "red" } as const;
export function SomeComponent(){
return <Icon path={mdiCheck} style={fixedStyle} size={1} />
}
This issue seems to be triggered by mutating the style object in Icon.tsx L31
If
sizeis specified together with a read onlystylethe component breaks.The code bellow will produce this error:
Cannot assign to read only property 'width' of object '#<Object>' iconApp.tsx
This issue seems to be triggered by mutating the
styleobject inIcon.tsxL31