Skip to content

Commit

Permalink
Make group filter case-insensitive (keycloak#32471)
Browse files Browse the repository at this point in the history
Fixes keycloak#32419

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
  • Loading branch information
ssilvert authored Sep 2, 2024
1 parent 058c271 commit 943d532
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/apps/admin-ui/src/components/group/GroupPickerDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ export const GroupPickerDialog = ({
<DataList aria-label={t("groups")} isCompact>
{groups.slice(0, max).map((group: SelectableGroup) => (
<Fragment key={group.id}>
{(!isSearching || group.name?.includes(filter)) && (
{(!isSearching ||
group.name
?.toLocaleUpperCase()
.includes(filter.toLocaleUpperCase())) && (
<GroupRow
key={group.id}
group={group}
Expand Down

0 comments on commit 943d532

Please sign in to comment.