Skip to content
Permalink
Browse files

Change the filtervalue to lowercase

  • Loading branch information...
Jackie6 committed Apr 3, 2019
1 parent 354c1ff commit 981e0b4ea9ad710e81ba86d2efab422734767ef1
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js
@@ -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;
}

0 comments on commit 981e0b4

Please sign in to comment.
You can’t perform that action at this time.