Skip to content

Commit

Permalink
Update choiceToggle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
underdarknl authored Feb 7, 2025
1 parent f1e937e commit 8957770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocky/assets/js/choiceToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function initChoiceTogglers() {
form.addEventListener("change", function (event) {
let tag = event.target;
if (tag.tagName == "INPUT" && tag.classList.contains("radio-choice")) {
let visible_group = tag.value;
let toggle_group = tag.dataset.choicegroup;
toggleChoice(tag.form, visible_group, visible_group);
let visible_group = tag.value;
toggleChoice(tag.form, toggle_group, visible_group);
}
});
});
Expand Down

0 comments on commit 8957770

Please sign in to comment.