Fixes: Duplicate events for radio buttons

Bug: T352075
Change-Id: I9cec0b23618162ba74ccd9cd2e27e9171cdc8d6e
This commit is contained in:
Jon Robson 2023-11-28 10:09:06 -08:00
parent 991419e877
commit 15250424b3

View file

@ -75,7 +75,7 @@ function appendRadioToggle( parent, featureName, value, currentValue ) {
label.setAttribute( 'for', id );
const container = document.createElement( 'div' );
container.classList.add( 'cdx-radio' );
container.setAttribute( 'data-event-name', id );
input.setAttribute( 'data-event-name', id );
container.appendChild( input );
container.appendChild( icon );
container.appendChild( label );