Open bohdanbirdie opened 4 years ago
seems like this is because of props = _objectWithoutProperties(_ref, ["label", "icon", "className"]);
having className
included
@gajus any thoughts on that?
I tried to modify plugin code, but without success so far
@bohdanbirdie Try putting styleName
after the props spread.
@tsnieman, unfortunately, it won't add className
to the excluded props
Having two components,
NavIconLink
andAnchorDefault
I passstyleName
to theAnchorDefault
, but also there might be aclassName
from the props spread that will be passed as well. In this case ofclassName
is passed - whatever was transformed fromstyleName
toclassName
get's overwritten by passedclassName
from the spread.Compiled part
The current workaround is to manually write
className
prop and set it.