diff --git a/components/select/demo/search.md b/components/select/demo/search.md index c9c4ad5030..49b504fb39 100644 --- a/components/select/demo/search.md +++ b/components/select/demo/search.md @@ -28,7 +28,7 @@ ReactDOM.render( placeholder="Select a person" optionFilterProp="children" onChange={handleChange} - filterOption={(input, option) => option.props.value.toLowerCase().indexOf(input.toLowerCase()) >= 0} + filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} >