From 7eb01b18133836b38a823406bc60c5f4e7206ee3 Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Mon, 30 Jan 2023 11:17:02 +0100 Subject: [PATCH] MultiSelect: Fix `actionMeta` not available in `onChange` callback (#62339) add `ActionMeta` to `onChange` callback --- packages/grafana-ui/src/components/Select/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Select/types.ts b/packages/grafana-ui/src/components/Select/types.ts index 3e6d5c4fbfe..311cf4055c4 100644 --- a/packages/grafana-ui/src/components/Select/types.ts +++ b/packages/grafana-ui/src/components/Select/types.ts @@ -119,7 +119,7 @@ export interface VirtualizedSelectAsyncProps export interface MultiSelectCommonProps extends Omit, 'onChange' | 'isMulti' | 'value'> { value?: Array> | T[]; - onChange: (item: Array>) => {} | void; + onChange: (item: Array>, actionMeta: ActionMeta) => {} | void; } // This is the type of *our* SelectBase component, not ReactSelect's prop, although