hi-tm 0.5.7 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -123,15 +123,6 @@ function CreatableSelect({ options = [], value, onChange, onClick, onValueChange
|
|
|
123
123
|
setFilteredOptions(options ?? []);
|
|
124
124
|
}
|
|
125
125
|
}, [options, hasSearched]);
|
|
126
|
-
// Sync selectedValues with the value prop
|
|
127
|
-
(0, react_1.useEffect)(() => {
|
|
128
|
-
if (isMultiSelect) {
|
|
129
|
-
setSelectedValues(Array.isArray(value) ? value : value ? [value] : []);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
setSelectedValues(value ? [value] : []);
|
|
133
|
-
}
|
|
134
|
-
}, [value, isMultiSelect]);
|
|
135
126
|
// Reset filtered list when input cleared
|
|
136
127
|
(0, react_1.useEffect)(() => {
|
|
137
128
|
if (inputValue === '') {
|