Prepare radio-button-group
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user