mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
MultiSelect: Fix actionMeta
not available in onChange
callback (#62339)
add `ActionMeta` to `onChange` callback
This commit is contained in:
parent
d44f250aea
commit
7eb01b1813
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user