From 948267359ab199b9c4cb3404b3b65e1260d49927 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Tue, 5 Nov 2024 15:50:19 +0100 Subject: [PATCH] Reset input when guess was successful filed --- src/alfagok/static/game.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/alfagok/static/game.js b/src/alfagok/static/game.js index 6f46c80..e3f9126 100644 --- a/src/alfagok/static/game.js +++ b/src/alfagok/static/game.js @@ -73,10 +73,12 @@ document.addEventListener('alpine:init', () => { if (result.hint && result.hint === 'after') { this.guessesBefore.push(this.guessValue); this.guessesBefore.sort(); + this.guessValue = ''; } if (result.hint && result.hint === 'before') { this.guessesAfter.push(this.guessValue); this.guessesAfter.sort(); + this.guessValue = ''; } if (result.hint && result.hint === 'it') { console.log('gevonden!');