next-helios-fe 1.8.31 → 1.8.32
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
@@ -29,8 +29,16 @@ export interface MultipleSelectProps
|
|
29
29
|
value: string[];
|
30
30
|
};
|
31
31
|
}) => void;
|
32
|
-
onSelect?: (
|
33
|
-
|
32
|
+
onSelect?: (e: {
|
33
|
+
target: {
|
34
|
+
value: string;
|
35
|
+
};
|
36
|
+
}) => void;
|
37
|
+
onRemove?: (e: {
|
38
|
+
target: {
|
39
|
+
value: string;
|
40
|
+
};
|
41
|
+
}) => void;
|
34
42
|
}
|
35
43
|
|
36
44
|
export const MultipleSelect: React.FC<MultipleSelectProps> = ({
|
@@ -206,7 +214,11 @@ export const MultipleSelect: React.FC<MultipleSelectProps> = ({
|
|
206
214
|
} as any);
|
207
215
|
}
|
208
216
|
if (onRemove) {
|
209
|
-
onRemove(
|
217
|
+
onRemove({
|
218
|
+
target: {
|
219
|
+
value: item,
|
220
|
+
},
|
221
|
+
});
|
210
222
|
}
|
211
223
|
}
|
212
224
|
}}
|
@@ -262,7 +274,9 @@ export const MultipleSelect: React.FC<MultipleSelectProps> = ({
|
|
262
274
|
} as any);
|
263
275
|
}
|
264
276
|
if (onSelect) {
|
265
|
-
onSelect(
|
277
|
+
onSelect({
|
278
|
+
target: { value: item.value },
|
279
|
+
});
|
266
280
|
}
|
267
281
|
}}
|
268
282
|
>
|