Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Nov 29, 2024
1 parent 70b18ee commit 004b0f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/radios/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
}}
{% if radio.other %}
{% set otherType = radio.other.otherType | default('input') %}
<span class="ons-radio__other ons-radio__other-input" id="{{ radio.id }}-other-wrap">
<span
class="ons-radio__other{{ ' ons-radio__other-input' if otherType == 'input' else '' }}"
id="{{ radio.id }}-other-wrap"
>
{% if otherType == "input" %}
{% from "components/input/_macro.njk" import onsInput %}
{{
Expand Down
2 changes: 1 addition & 1 deletion src/components/radios/radios.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ domready(async () => {
new ClearRadios(radios, button, otherInput);
}

const openOther = document.querySelector('.ons-radio__other--open');
const openOther = document.querySelector('.ons-radio__other-input');
if (openOther) {
const parent = openOther.parentNode;
const radioInput = parent.querySelector('.ons-radio__input');
Expand Down

0 comments on commit 004b0f1

Please sign in to comment.