From 3be9e79615ceffbe308fc82b7342634a865f00fe Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 11 Dec 2021 22:19:15 +0100 Subject: [PATCH] clearForm sets boxes to default not always empty --- script/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gallery.js b/script/gallery.js index 4a38eb6..ef0ebed 100644 --- a/script/gallery.js +++ b/script/gallery.js @@ -59,7 +59,7 @@ function toggle(checkbox) { function clearForm() { - allBoxes.forEach(b => b.checked = false); + allBoxes.forEach(b => b.checked = b.defaultChecked); } function clear(e) {