Skip to content

Commit

Permalink
FIO-9280 fixed validation for select boxes with valid values and when…
Browse files Browse the repository at this point in the history
… value property is not set (#5896)
  • Loading branch information
HannaKurban authored Nov 6, 2024
1 parent e4f3619 commit 849f6cd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/radio/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,9 @@ export default class RadioComponent extends ListComponent {
};
listData.push(this.templateData[this.component.valueProperty ? valueAtProperty : i]);

if ((this.component.valueProperty || !this.isRadio) && (
_.isUndefined(valueAtProperty) ||
(!this.isRadio && _.isObject(valueAtProperty)) ||
(!this.isRadio && _.isBoolean(valueAtProperty))
const value = this.loadedOptions[i].value;
if (!this.isRadio && (
_.isObject(value) || _.isBoolean(value) || _.isUndefined(value)
)) {
this.loadedOptions[i].invalid = true;
}
Expand Down

0 comments on commit 849f6cd

Please sign in to comment.