Open manuelbasanta opened 6 years ago
Hi @manuelbasanta ,
Sorry for being late to reply. I think this should be added as a feature in the lib. I will work on that and release a version ASAP.
I'm having the same issue.
My code:
<MaterialIcon icon={icon} color={color} size={size} style={{ backgroundColor }} />
The problem is in this line
var styleOverride = Object.assign(propStyle, { color: color ? color : '', fontSize: sizeMapped });
I've also run into this issue. @sithumn is this still a planned update?
same here, can't assign a color
I have a p tag that shows an icon if mouse is over:
But i get this error if I mouseOver twice: index.js:51 Uncaught TypeError: Cannot assign to read only property 'color' of object '#
Is this re right way of modifying the style of an icon?