mimir-ui-kit 1.26.2 → 1.26.3
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.
@@ -3821,8 +3821,13 @@ const SelectSearch = forwardRef(
|
|
3821
3821
|
) : items;
|
3822
3822
|
}, [inputValue, items, value, filterOnSearch]);
|
3823
3823
|
const handleOneChange = (newValue) => {
|
3824
|
-
|
3825
|
-
|
3824
|
+
if (newValue) {
|
3825
|
+
setInputValue(newValue.name);
|
3826
|
+
onChange == null ? void 0 : onChange(newValue);
|
3827
|
+
} else {
|
3828
|
+
setInputValue("");
|
3829
|
+
onChange == null ? void 0 : onChange({ id: "", name: "" });
|
3830
|
+
}
|
3826
3831
|
};
|
3827
3832
|
const handleInputChange = useCallback(
|
3828
3833
|
(event) => {
|