Due to the complicated label structure of the collection_radio_button component of bootstrap forms, the following block produces an error when the label to be changed belongs to a radio button element.
|
$(`label[for="${changeId}"]`)[0].innerHTML = newLabel(changeElement, key); |
The failing action is that $('label[for="${changeId}"]')[0] is evaluating as undefined, and the original label is unaffected
Due to the complicated label structure of the
collection_radio_buttoncomponent of bootstrap forms, the following block produces an error when the label to be changed belongs to a radio button element.ondemand/apps/dashboard/app/javascript/dynamic_forms.js
Line 203 in 6fd6fd0
The failing action is that
$('label[for="${changeId}"]')[0]is evaluating asundefined, and the original label is unaffected