fix(FE-Storyless): update SelectInput value handling to use undefined instead of null for better compatibility

This commit is contained in:
rstubryan
2025-10-30 13:32:32 +07:00
parent c83ebd73be
commit a5f8eb60c6
+1 -1
View File
@@ -187,7 +187,7 @@ const SelectInput = <T extends OptionType>(props: SelectInputProps<T>) => {
<SelectComponent<T, boolean, GroupBase<T>>
instanceId='select'
value={value ?? (isMulti ? [] : null)}
value={value ?? (isMulti ? [] : undefined)}
onChange={onChange ? handleChange : undefined}
options={options}
menuIsOpen={openMenu}