From 15250424b339239a0ff65cbcce353ee14e9aaebe Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Tue, 28 Nov 2023 10:09:06 -0800 Subject: [PATCH] Fixes: Duplicate events for radio buttons Bug: T352075 Change-Id: I9cec0b23618162ba74ccd9cd2e27e9171cdc8d6e --- resources/skins.vector.clientPreferences/clientPreferences.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/skins.vector.clientPreferences/clientPreferences.js b/resources/skins.vector.clientPreferences/clientPreferences.js index 21dc6caff..49ac4d047 100644 --- a/resources/skins.vector.clientPreferences/clientPreferences.js +++ b/resources/skins.vector.clientPreferences/clientPreferences.js @@ -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 );