Skip to content

Commit

Permalink
fixed #5 修复索引过滤大小写问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 23, 2018
1 parent da94c39 commit 55acd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/Select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class Select extends Component {
onFilterLang(e) {
const { value } = e.target;
const { option } = this.state;
const filterData = option.filter(item => item.value.toLowerCase().indexOf(value) > -1);
const filterData = option.filter(item => item.value.toLowerCase().indexOf(value.toLowerCase()) > -1);
this.setState({
option: value.length > 0 ? filterData : this.props.option,
});
Expand Down

0 comments on commit 55acd30

Please sign in to comment.