Skip to content

Commit

Permalink
Add custom filter with logging
Browse files Browse the repository at this point in the history
  • Loading branch information
loftyinclination committed Aug 23, 2022
1 parent 2d26939 commit 9b08d4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reblase/src/components/elements/TeamPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export default function TeamPicker(props: TeamPickerProps) {
props.setSelectedTeams((value as ChronTeam[])?.map((team) => team.entityId) ?? []);
}
}}
filterOption={(candidate, input) => {
console.log(candidate);
return candidiate.value.toLowerCase().includes(input.toLowerCase());
}}
/>
);
}

0 comments on commit 9b08d4b

Please sign in to comment.