next-helios-fe 1.10.20 → 1.10.22
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
|
"use client";
|
|
2
2
|
import React, { useState, useEffect, useRef } from "react";
|
|
3
|
-
import { Modal, Form
|
|
3
|
+
import { Modal, Form } from "../../../components";
|
|
4
4
|
import { Icon } from "@iconify/react";
|
|
5
5
|
import { useDebouncedCallback } from "use-debounce";
|
|
6
6
|
|
|
@@ -321,7 +321,9 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
|
|
|
321
321
|
type === "select" && tempValue === optionItem.value
|
|
322
322
|
? true
|
|
323
323
|
: type === "multipleSelect" &&
|
|
324
|
-
!
|
|
324
|
+
!(
|
|
325
|
+
Array.isArray(tempValue) ? tempValue : []
|
|
326
|
+
)?.includes(optionItem.value) &&
|
|
325
327
|
max &&
|
|
326
328
|
tempValue?.length === max
|
|
327
329
|
? true
|
|
@@ -404,7 +406,10 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
|
|
|
404
406
|
<Form.Checkbox
|
|
405
407
|
options={{ disableHover: true }}
|
|
406
408
|
checked={
|
|
407
|
-
|
|
409
|
+
(Array.isArray(tempValue)
|
|
410
|
+
? tempValue
|
|
411
|
+
: []
|
|
412
|
+
)?.includes(optionItem.value) ?? false
|
|
408
413
|
}
|
|
409
414
|
readOnly
|
|
410
415
|
/>
|