From 60450005648f7c2391f91ef7ade3e05462f26205 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 15 Nov 2023 09:58:41 -0700 Subject: [PATCH] fix: helper.js was updating form.answer --- theme/puzzle.html | 2 +- theme/puzzle.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/theme/puzzle.html b/theme/puzzle.html index 1cab70f..27879d1 100644 --- a/theme/puzzle.html +++ b/theme/puzzle.html @@ -21,7 +21,7 @@

Puzzle by [loading]

-
+
diff --git a/theme/puzzle.mjs b/theme/puzzle.mjs index 0e948d2..62fc689 100644 --- a/theme/puzzle.mjs +++ b/theme/puzzle.mjs @@ -211,7 +211,7 @@ async function init() { window.setanswer = (str => SetAnswer(str)) window.checkAnswer = (str => window.app.puzzle.IsPossiblyCorrect(str)) - for (let form of document.querySelectorAll("form.answer")) { + for (let form of document.querySelectorAll("form.submit-answer")) { form.addEventListener("submit", formSubmitHandler) for (let e of form.querySelectorAll("[name=answer]")) { e.addEventListener("input", answerInputHandler)