File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,9 @@ class {
25
25
currentChecked,
26
26
}: Parameters< NonNullable< FilterMenuButtonInput[" on-change" ]>> [0 ]) {
27
27
if (index === undefined ) return ;
28
+ const spreadItems = (this .input as FilterMenuButtonInput).type === " radio" ? {} : this .state .checkedCodes
28
29
this .state .checkedCodes = {
29
- ... this . state . checkedCodes ,
30
+ ... spreadItems ,
30
31
[this .state .visibleCountries [index].code ]: !! currentChecked,
31
32
};
32
33
}
Original file line number Diff line number Diff line change @@ -25,8 +25,9 @@ class {
25
25
currentChecked,
26
26
}: Parameters< NonNullable< FilterMenuInput[" on-change" ]>> [0 ]) {
27
27
if (index === undefined ) return ;
28
+ const spreadItems = (this .input as FilterMenuInput).type === " radio" ? {} : this .state .checkedCodes
28
29
this .state .checkedCodes = {
29
- ... this . state . checkedCodes ,
30
+ ... spreadItems ,
30
31
[this .state .visibleCountries [index].code ]: !! currentChecked,
31
32
};
32
33
}
You can’t perform that action at this time.
0 commit comments