console prompts the following warnings:
Warning: the children of Select
should be Select.Option
or Select.OptGroup
, instead of Option
.
<Select
showSearch
style={{ width: 260,height: 32 }}
placeholder={this.state.userSele}
optionFilterProp="children"
allowClear={true}
onChange={this.stockCodeSelect}
filterOption={(input,option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
>
{
arr.map((item,index) => (
<Option value={item.CODE} key={index}>{item.NAME}</Option>
))
}
</Select>