Skip to content

Commit

Permalink
FIO-7334: Fixes an issue where Radio values do not appear for Action …
Browse files Browse the repository at this point in the history
…Conditions settings (#5542)
  • Loading branch information
alexandraRamanenka authored Mar 27, 2024
1 parent df11173 commit 2e63726
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/radio/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ export default class RadioComponent extends ListComponent {
};
}

static get serverConditionSettings() {
return {
...super.serverConditionSettings,
valueComponent(classComp) {
return {
type: 'select',
dataSrc: 'custom',
valueProperty: 'value',
dataType: classComp.dataType || '',
data: {
custom: `values = ${classComp && classComp.values ? JSON.stringify(classComp.values) : []}`,
},
};
},
};
}

static savedValueTypes(schema) {
const { boolean, string, number, object, array } = componentValueTypes;
const { dataType } = schema;
Expand Down

0 comments on commit 2e63726

Please sign in to comment.