From 013d0f91bb281a01bfdf9a774621d764fd489b78 Mon Sep 17 00:00:00 2001 From: James Lucas Date: Fri, 30 Sep 2022 11:08:33 +1000 Subject: [PATCH] There is no checkbox setting for marking "other" as default selected, skip it when synchronising the selected options --- src/js/form-builder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/form-builder.js b/src/js/form-builder.js index 4adde422f..3843abc43 100644 --- a/src/js/form-builder.js +++ b/src/js/form-builder.js @@ -1704,6 +1704,7 @@ function FormBuilder(opts, element, $) { } else { prevOptions = document.getElementsByName(e.target.name) forEach(prevOptions, i => { + if (prevOptions[i].classList.contains('other-option')) return //Cannot set other as a default checked const selectedOption = options[i].parentElement.childNodes[0] selectedOption.checked = prevOptions[i].checked })