next-helios-fe 1.7.3 → 1.7.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -58,15 +58,6 @@ export const Select: React.FC<SelectProps> = ({
58
58
  }
59
59
  }, [rest.value, rest.defaultValue]);
60
60
 
61
- useEffect(() => {
62
- if (tempValue) {
63
- rest.onChange &&
64
- rest.onChange({
65
- target: { value: tempValue } as HTMLSelectElement,
66
- } as any);
67
- }
68
- }, [tempValue]);
69
-
70
61
  return (
71
62
  <div className="flex flex-row-reverse items-end">
72
63
  <label className={`grid gap-2 ${width}`}>
@@ -161,6 +152,11 @@ export const Select: React.FC<SelectProps> = ({
161
152
  disabled={tempValue === item.value}
162
153
  onClick={() => {
163
154
  setTempValue(item.value);
155
+ if (rest.onChange) {
156
+ rest.onChange({
157
+ target: { value: item.value } as HTMLSelectElement,
158
+ } as any);
159
+ }
164
160
  }}
165
161
  >
166
162
  {item.label}