<input> 标签上的未知道具 'theme':React-Select v2
Unknown prop 'theme' on <input> tag: React-Select v2
我对 React-Select 有疑问。刚开始使用它,因为它符合我的业务需求。
return (
<FormGroup row>
<Col md={6}>
<Select
placeholder="Please Select..."
name={fieldName}
onChange={onChange}
options={options} />
</Col>
</FormGroup>
)
我没有显示其余代码; fieldName
、onChange
& options
是从父组件传递给子组件的 props。
在浏览器上,Dropdown
栏似乎可以正常工作,但我仍然收到警告:
Warning: Unknown prop 'theme' on <input>
tag. Remove this prop from the
element. in input (created by AutosizeInput) in div (created by
AutosizeInput) [...]
我有几个问题:
- 我没有通过主题道具。
- 他们在谈论什么
<input>
标签?
- 这是 React-Select V2 的已知问题吗?
感谢社区
我对 React-Select 有疑问。刚开始使用它,因为它符合我的业务需求。
return (
<FormGroup row>
<Col md={6}>
<Select
placeholder="Please Select..."
name={fieldName}
onChange={onChange}
options={options} />
</Col>
</FormGroup>
)
我没有显示其余代码; fieldName
、onChange
& options
是从父组件传递给子组件的 props。
在浏览器上,Dropdown
栏似乎可以正常工作,但我仍然收到警告:
Warning: Unknown prop 'theme' on
<input>
tag. Remove this prop from the element. in input (created by AutosizeInput) in div (created by AutosizeInput) [...]
我有几个问题:
- 我没有通过主题道具。
- 他们在谈论什么
<input>
标签? - 这是 React-Select V2 的已知问题吗?
感谢社区