Skip to content

Commit

Permalink
chore(filterable-select): address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stripeyjumper committed Jan 10, 2024
1 parent 63496dd commit 2136d69
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,9 @@ export const CustomFilterAndOptionStyle = () => {
{ text: "Yellow", color: "#FFFF00" },
].filter(
({ text }) =>
!filterText || text.toLowerCase().includes(filterText.toLowerCase())
!filterText ||
(filterText.trim().length &&
text.toLowerCase().includes(filterText.trim().toLowerCase()))
),
[filterText]
);
Expand Down

0 comments on commit 2136d69

Please sign in to comment.