fix
This commit is contained in:
parent
3bbf39c803
commit
8435309769
|
|
@ -445,6 +445,7 @@ const SingleCheckbox = ({
|
|||
val.push({ value: item.value, checked: [] });
|
||||
}
|
||||
} else {
|
||||
if (item.value) {
|
||||
let idx = val.findIndex((e) => e === item.value);
|
||||
|
||||
if (idx >= 0) {
|
||||
|
|
@ -453,6 +454,7 @@ const SingleCheckbox = ({
|
|||
val.push(item.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
onChange(val, item);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue