Reset input when guess was successful filed

This commit is contained in:
2024-11-05 15:50:19 +01:00
parent b942200833
commit 948267359a

View File

@@ -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!');