Prepare radio-button-group

This commit is contained in:
Daniel
2025-05-05 10:17:35 +02:00
parent 7898e375b4
commit 5c18791c13
3 changed files with 62 additions and 16 deletions

View File

@ -309,13 +309,13 @@ function updateValue(component) {
let row = elem.closest('div');
row.classList.remove('row-waiting-for-answer');
let options = elem.childNodes;
for (var j = 0; j < options.length; j++) {
if (options[j].label == component.value) {
elem.value = j + 1;
}
}
} else if (type == "pushbutton") {
// let options = elem.childNodes;
// for (var j = 0; j < options.length; j++) {
// if (options[j].label == component.value) {
// elem.value = j + 1;
// }
// }
elem.value = component.value;
console.log('update pushbutton');
console.log('component.name:', component.name);
console.log('element', elem);