From 89f3dd3607366a2582c90c29fc11fd45ac636cde Mon Sep 17 00:00:00 2001 From: Arthur Patterson Date: Fri, 6 Dec 2024 14:25:24 -0600 Subject: [PATCH] getInputStylePalette same type def as values --- src/inputs/internal/ComboBoxBase.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputs/internal/ComboBoxBase.tsx b/src/inputs/internal/ComboBoxBase.tsx index 873fbae8a..23f6736f0 100644 --- a/src/inputs/internal/ComboBoxBase.tsx +++ b/src/inputs/internal/ComboBoxBase.tsx @@ -21,7 +21,7 @@ export interface ComboBoxBaseProps extends BeamFocusableProp getOptionValue: (opt: O) => V; getOptionLabel: (opt: O) => string; /** Sets an input style based on the option(s) selected if `inputStylePalette` is not set */ - getInputStylePalette?: (values: V[]) => InputStylePalette; + getInputStylePalette?: (values: V[] | undefined) => InputStylePalette; /** The current value; it can be `undefined`, even if `V` cannot be. */ values: V[] | undefined; onSelect: (values: V[], opts: O[]) => void;