Skip to content

Commit

Permalink
fix(multiselect): add local onchangedata for typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ggdawson committed May 13, 2024
1 parent 28393e6 commit 96b7bf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react/src/components/MultiSelect/MultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import { keys, match } from '../../internal/keyboard';
import { usePrefix } from '../../internal/usePrefix';
import { FormContext } from '../FluidForm';
import { ListBoxProps } from '../ListBox/ListBox';
import { OnChangeData } from '../Dropdown';
import type { InternationalProps } from '../../types/common';
import { noopFn } from '../../internal/noopFn';

Expand Down Expand Up @@ -138,6 +137,10 @@ interface MultiSelectSortingProps<ItemType> {
): ItemType[];
}

interface OnChangeData<ItemType> {
selectedItems: ItemType[] | null;
}

export interface MultiSelectProps<ItemType>
extends MultiSelectSortingProps<ItemType>,
InternationalProps<
Expand Down

0 comments on commit 96b7bf5

Please sign in to comment.