Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix(select): make filtering case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay authored and varl committed Nov 20, 2019
1 parent a31adcf commit 95d6ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select/FilterableMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class FilterableMenu extends Component {
const { label } = child.props

// Filter by label, because that's the part of an option that's displayed to the user
const match = label.includes(filter)
const match = label.toLowerCase().includes(filter.toLowerCase())

return match ? child : null
})
Expand Down

0 comments on commit 95d6ff4

Please sign in to comment.