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
- setInputValue(newValue.name);
3825
- onChange == null ? void 0 : onChange(newValue);
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) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.26.2",
4
+ "version": "1.26.3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {