@majapisoftwares/ui 4.3.4 → 4.3.6

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.
@@ -19,7 +19,7 @@ function MultiSelectInput({ options, value, onChange, emptyLabel = "None", ref,
19
19
  if (onValueChange) {
20
20
  onValueChange(innerValue || []);
21
21
  }
22
- }, [innerValue || {}]);
22
+ }, [{ innerValue }]);
23
23
  emptyClassName = isEmpty
24
24
  ? clsx("text-zinc-500 dark:text-zinc-500", emptyClassName)
25
25
  : "p-1.5";
@@ -11,7 +11,7 @@ function SelectInput({ options, onChange, ref, placeholder, inputClassName, valu
11
11
  onChange,
12
12
  });
13
13
  return (<Input as={Select.Root} {...props} ref={innerRef} {...{
14
- value: innerValue,
14
+ value: innerValue ?? "",
15
15
  onValueChange: setInnerValue,
16
16
  }}>
17
17
  <Select.Trigger placeholder={placeholder} buttonClassName={clsx("bg-white dark:hover:bg-zinc-700/70 dark:bg-zinc-800 w-full justify-between min-h-[38px]", inputClassName)}/>
@@ -42,7 +42,7 @@ export default function useInputRefValue({ value, ref, name, onChange, }) {
42
42
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
43
43
  });
44
44
  }
45
- }, [innerValue]);
45
+ }, [{ innerValue }]);
46
46
  return {
47
47
  innerRef,
48
48
  innerValue,
package/package.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/majapisoftwares/ui.git"
6
6
  },
7
- "version": "4.3.4"
7
+ "version": "4.3.6"
8
8
  }