mimir-ui-kit 1.26.2 → 1.26.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -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) => {
|