Skip to content

Commit

Permalink
FIO-9327 Fixed unintentional setting of defaultValue for Select Boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
antonSoftensity committed Nov 27, 2024
1 parent 95d5794 commit 5f210b2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/selectboxes/SelectBoxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ export default class SelectBoxesComponent extends RadioComponent {
}

get emptyValue() {
return this.component.values.reduce((prev, value) => {
if (value.value) {
prev[value.value] = false;
}
return prev;
}, {});
return {};
}

get defaultValue() {
Expand Down Expand Up @@ -307,7 +302,7 @@ export default class SelectBoxesComponent extends RadioComponent {
return super.setCustomValidity(_.filter(messages, (message) => message.ruleName !=='invalidValueProperty'), dirty, external);
} else {
return super.setCustomValidity(messages, dirty, external);
};
}
}

validateValueAvailability(setting, value) {
Expand Down

0 comments on commit 5f210b2

Please sign in to comment.