Skip to content

data-label doesn't work with radio buttons #4607

@Bubballoo3

Description

@Bubballoo3

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Reviewed, Scheduled

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions