mirror of
https://github.com/aquatix/alfagok.git
synced 2025-12-06 19:55:12 +01:00
Reset input when guess was successful filed
This commit is contained in:
@@ -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!');
|
||||
|
||||
Reference in New Issue
Block a user