MultiSelect: Fix actionMeta not available in onChange callback (#62339)

add `ActionMeta` to `onChange` callback
This commit is contained in:
Sven Grossmann 2023-01-30 11:17:02 +01:00 committed by GitHub
parent d44f250aea
commit 7eb01b1813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ export interface VirtualizedSelectAsyncProps<T>
export interface MultiSelectCommonProps<T> extends Omit<SelectCommonProps<T>, 'onChange' | 'isMulti' | 'value'> {
value?: Array<SelectableValue<T>> | T[];
onChange: (item: Array<SelectableValue<T>>) => {} | void;
onChange: (item: Array<SelectableValue<T>>, actionMeta: ActionMeta) => {} | void;
}
// This is the type of *our* SelectBase component, not ReactSelect's prop, although