ConsenSysMesh / rimble-ui

React components that implement Rimble's Design System.
https://rimble.consensys.design/
MIT License
463 stars 67 forks source link

Uncaught Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML` #447

Closed jay15994 closed 4 years ago

jay15994 commented 4 years ago

rimble-ui Select

I am trying to use rimble-ui Select input but getting error

Uncaught Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.

source : https://rimble.consensys.design/components/rimble-ui/Select

codesandbox : https://codesandbox.io/s/recursing-bartik-rrp1v?fontsize=14&hidenavigation=1&theme=dark

Thanks

MikeLockz commented 4 years ago

Hi @jay15994 - I think if you change your styled-components dependency to something on version 4.xx you should not get the error anymore.

We will update our docs to reflect the dependency on SC4 until we can get the library on the latest v5 version.

jay15994 commented 4 years ago

@MikeLockz thanks for help downgrading to styled-components@4.4.1 solved my problem