You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you restyle a component using styled(OriginalComponent) syntax and then you use this restyled component with the prop as goober do not render the class of OriginalComponent, so you loose the original style. If you remove as everything works fine.
Here is an example with both goober component and native component wrapper:
I don't thinks so, because if you check the rendered dom in my example you will see an item without two classes when you use the as prop.
I also suggest you to merge the other bug solution anyway, because probably evryone prefer a library with 30b more an 1 bug less.
If you restyle a component using
styled(OriginalComponent)
syntax and then you use this restyled component with the propas
goober do not render the class ofOriginalComponent
, so you loose the original style. If you removeas
everything works fine.Here is an example with both goober component and native component wrapper:
https://codesandbox.io/s/vanilla-forked-re536?file=/src/index.js
The text was updated successfully, but these errors were encountered: