Antd Select component Warning

1. Antd version 3.11.2 has been upgraded, and Select components that use antd have alarms

.

clipboard.png
2. The local code is as follows:

    <Select
      showSearch
      style={{ width: 200 }}
      placeholder="Select a person"
      optionFilterProp="children"
      onChange={this.handleChange}
      onFocus={this.handleFocus}
      onBlur={this.handleBlur}
      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
    >
      <Option value="jack">Jack</Option>
      <Option value="lucy">Lucy</Option>
      <Option value="tom">Tom</Option>
    </Select>

3. Hope to remove the alarm and display normally

Mar.09,2022

maybe you didn't set the value of select


set the defaultValue of select

Menu