Skip to content

Commit

Permalink
update var names
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Nov 29, 2024
1 parent 2c760e4 commit 5b8e08d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/radios/radios.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')];
Expand Down

0 comments on commit 5b8e08d

Please sign in to comment.