Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Commit

Permalink
SF
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Lancha authored and matuzalemsteles committed Dec 12, 2017
1 parent 5934609 commit e0c4c5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/clay-dropdown/src/ClayDropdownBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ class ClayDropdownBase extends Component {
item.originalItems_ = item.items;
}

item.items = item.originalItems_.filter(nested_item => {
item.items = item.originalItems_.filter(nestedItem => {
return (
nested_item.label &&
nested_item.type !== 'group' &&
nested_item.type !== 'header' &&
nested_item.type !== 'separator' &&
nested_item.label.toLowerCase().indexOf(searchValue) !==
nestedItem.label &&
nestedItem.type !== 'group' &&
nestedItem.type !== 'header' &&
nestedItem.type !== 'separator' &&
nestedItem.label.toLowerCase().indexOf(searchValue) !==
-1
);
});
Expand Down

0 comments on commit e0c4c5a

Please sign in to comment.