From 5b8e08db8916edd35f48730a524ec4dae946ab16 Mon Sep 17 00:00:00 2001 From: Richard McCarthy Date: Fri, 29 Nov 2024 15:34:13 +0000 Subject: [PATCH] update var names --- src/components/radios/radios.dom.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/radios/radios.dom.js b/src/components/radios/radios.dom.js index b0e6743dfa..331cb14419 100644 --- a/src/components/radios/radios.dom.js +++ b/src/components/radios/radios.dom.js @@ -5,20 +5,20 @@ domready(async () => { if (radios.length) { const button = document.querySelector('.ons-js-clear-btn'); - const otherInput = document.querySelector('.ons-radio__other'); + const otherInputs = document.querySelector('.ons-radio__other'); if (button) { const ClearRadios = (await import('./clear-radios')).default; - new ClearRadios(radios, button, otherInput); + new ClearRadios(radios, button, otherInputs); } - const openOther = document.querySelector('.ons-radio__other-input'); - if (openOther) { - const parent = openOther.parentNode; + const otherTextInput = document.querySelector('.ons-radio__other-input'); + if (otherTextInput) { + const parent = otherTextInput.parentNode; const radioInput = parent.querySelector('.ons-radio__input'); const CheckRadios = (await import('./check-radios')).default; - new CheckRadios(radioInput, openOther); + new CheckRadios(radioInput, otherTextInput); } const otherFieldsets = [...document.querySelectorAll('.ons-js-other-fieldset-radio')];