gpt4 book ai didi

javascript - <input> 标记 : React-Select v2 上的未知属性 'theme'

转载 作者:行者123 更新时间:2023-12-03 00:47:25 25 4
gpt4 key购买 nike

我对React-Select有疑问。刚刚开始使用它,因为它符合我的业务需求。

return (
<FormGroup row>
<Col md={6}>
<Select
placeholder="Please Select..."
name={fieldName}
onChange={onChange}
options={options} />
</Col>
</FormGroup>
)

我没有展示其余的代码; fieldName , onChange & options是从父组件传递到子组件的 Prop 。

在浏览器上,Dropdown酒吧似乎正在工作,但我仍然收到警告:

Warning: Unknown prop 'theme' on <input> tag. Remove this prop from the element. in input (created by AutosizeInput) in div (created by AutosizeInput) [...]

我有几个问题:

  1. 我没有传递任何主题 Prop 。
  2. 什么<input>他们在谈论标签吗?
  3. 这是 React-Select V2 的已知问题吗?

感谢社区

最佳答案

有一个为此提出的问题 here ,并且显然在 v2.1.1 中解决了。

问题位于 this组件。

关于javascript - &lt;input&gt; 标记 : React-Select v2 上的未知属性 'theme',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53185103/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com