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 committed Feb 14, 2023
1 parent 862a714 commit f48a21d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
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
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,12 @@ __metadata:
languageName: unknown
linkType: soft

"@carbon/cra-template@workspace:packages/cra-template":
version: 0.0.0-use.local
resolution: "@carbon/cra-template@workspace:packages/cra-template"
languageName: unknown
linkType: soft

"@carbon/elements@workspace:packages/elements":
version: 0.0.0-use.local
resolution: "@carbon/elements@workspace:packages/elements"
Expand Down Expand Up @@ -12689,12 +12695,6 @@ __metadata:
languageName: node
linkType: hard

"cra-template@workspace:packages/cra-template":
version: 0.0.0-use.local
resolution: "cra-template@workspace:packages/cra-template"
languageName: unknown
linkType: soft

"create-ecdh@npm:^4.0.0":
version: 4.0.3
resolution: "create-ecdh@npm:4.0.3"
Expand Down

0 comments on commit f48a21d

Please sign in to comment.