From 74503f12d682095af80e5dab4128b1cf7af68a35 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 30 Oct 2025 14:01:13 +0700 Subject: [PATCH] fix(FE-Storyless): update SelectInput value handling to use undefined instead of null for better compatibility --- src/components/input/SelectInput.tsx | 94 +++++++++++++++++----------- 1 file changed, 58 insertions(+), 36 deletions(-) diff --git a/src/components/input/SelectInput.tsx b/src/components/input/SelectInput.tsx index f3eca7d1..b663b923 100644 --- a/src/components/input/SelectInput.tsx +++ b/src/components/input/SelectInput.tsx @@ -9,6 +9,8 @@ import Select, { InputActionMeta, MultiValue, SingleValue, + components as ReactSelectComponents, + ControlProps, } from 'react-select'; import CreatableSelect from 'react-select/creatable'; import makeAnimated from 'react-select/animated'; @@ -64,6 +66,33 @@ interface SelectInputProps extends SelectInputBaseProps { const animatedComponents = makeAnimated(); +const CustomControl = < + Option, + IsMulti extends boolean, + Group extends GroupBase