Skip to content

Commit

Permalink
Pass true value as isInList param to get options utility
Browse files Browse the repository at this point in the history
  • Loading branch information
mimshins committed May 26, 2024
1 parent 29a28cb commit 930ab5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Select/components/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ const GroupBase = (props: Props, ref: React.Ref<HTMLDivElement>) => {
React.Children.toArray(
resolvePropWithRenderContext(childrenProp, { hidden: false }),
),
true,
);

hidden = options.every(
option => !filtered.some(entity => entity === option.value),
option => !filtered.some(value => value === option.value),
);
}
}
Expand Down

0 comments on commit 930ab5d

Please sign in to comment.