【发布时间】:2020-08-14 11:30:37
【问题描述】:
我正在尝试使用 rimble-ui 选择输入但出现错误
Uncaught Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.
来源:https://rimble.consensys.design/components/rimble-ui/Select
代码沙盒:https://codesandbox.io/s/recursing-bartik-rrp1v?fontsize=14&hidenavigation=1&theme=dark
谢谢
【问题讨论】:
-
您是否尝试将选择组件包装在
<Field/>中?根据此处的示例:rimble.consensys.design/components/rimble-ui/Select -
@Jayce444 是的,不能使用更新的字段包装器,请检查
标签: javascript reactjs forms user-interface selectinput