From 7da95b80b06f54d05fe586c65eedc869500a5cba Mon Sep 17 00:00:00 2001 From: rstubryan Date: Tue, 28 Oct 2025 08:58:01 +0700 Subject: [PATCH] refactor(FE-Storyless): conditionally handle onChange prop in SelectInput for better flexibility --- src/components/input/SelectInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/input/SelectInput.tsx b/src/components/input/SelectInput.tsx index d7b13529..32d26866 100644 --- a/src/components/input/SelectInput.tsx +++ b/src/components/input/SelectInput.tsx @@ -146,7 +146,7 @@ const SelectInput = (props: SelectInputProps) => { > instanceId='select' value={value ?? (isMulti ? [] : null)} - onChange={handleChange} + onChange={onChange ? handleChange : undefined} options={options} menuIsOpen={openMenu} inputValue={internalInputValue}