Skip to content

Commit

Permalink
fix(MultiSelect): pass locale prop to sort options
Browse files Browse the repository at this point in the history
  • Loading branch information
awarrier99 authored and tw15egan committed Feb 22, 2023
1 parent bef1c7e commit 3971c89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/components/MultiSelect/MultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ const MultiSelect = React.forwardRef(function MultiSelect<ItemType>(
direction,
selectedItems: selected,
readOnly,
locale
}: MultiSelectProps<ItemType>,
ref: ForwardedRef<HTMLButtonElement>
) {
Expand Down Expand Up @@ -392,7 +393,7 @@ const MultiSelect = React.forwardRef(function MultiSelect<ItemType>(
selectedItems: controlledSelectedItems,
itemToString,
compareItems,
locale: 'en',
locale
};

if (selectionFeedback === 'fixed') {
Expand Down

0 comments on commit 3971c89

Please sign in to comment.