Skip to content

Commit

Permalink
Change the filtervalue to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie6 committed Apr 24, 2019
1 parent 354c1ff commit 981e0b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class HierarchicalTermSelector extends Component {

// If the term's name contains the filterValue, or it has children
// (i.e. some child matched at some point in the tree) then return it.
if ( -1 !== term.name.toLowerCase().indexOf( filterValue ) || term.children.length > 0 ) {
if ( -1 !== term.name.toLowerCase().indexOf( filterValue.toLowerCase( ) ) || term.children.length > 0 ) {
return term;
}

Expand Down

0 comments on commit 981e0b4

Please sign in to comment.