From 92b01bfebd30fbe29152793845d17617573faabc Mon Sep 17 00:00:00 2001 From: Frank Elavsky Date: Mon, 1 Jul 2024 10:44:02 -0400 Subject: [PATCH] swap selection of all inputs to checkbox only --- early_explo/examples/menu/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/early_explo/examples/menu/menu.js b/early_explo/examples/menu/menu.js index 76ea5d9..1f2d719 100644 --- a/early_explo/examples/menu/menu.js +++ b/early_explo/examples/menu/menu.js @@ -284,7 +284,7 @@ const toggleOptions = (e) => { menu.setAttribute('data-highcharts-override', 'true') toggleMenu(menu) - const childrenBoxes = [...e.srcElement.form.parentNode.parentNode.querySelectorAll("input")] + const childrenBoxes = [...e.srcElement.form.parentNode.parentNode.querySelectorAll('input[type="checkbox"]')] childrenBoxes.forEach(box =>{ if (!box.getAttribute('data-highcharts-override')) { box.checked = e.srcElement.checked