mirror of
https://github.com/aquatix/alfagok.git
synced 2025-12-06 21:05:10 +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') {
|
if (result.hint && result.hint === 'after') {
|
||||||
this.guessesBefore.push(this.guessValue);
|
this.guessesBefore.push(this.guessValue);
|
||||||
this.guessesBefore.sort();
|
this.guessesBefore.sort();
|
||||||
|
this.guessValue = '';
|
||||||
}
|
}
|
||||||
if (result.hint && result.hint === 'before') {
|
if (result.hint && result.hint === 'before') {
|
||||||
this.guessesAfter.push(this.guessValue);
|
this.guessesAfter.push(this.guessValue);
|
||||||
this.guessesAfter.sort();
|
this.guessesAfter.sort();
|
||||||
|
this.guessValue = '';
|
||||||
}
|
}
|
||||||
if (result.hint && result.hint === 'it') {
|
if (result.hint && result.hint === 'it') {
|
||||||
console.log('gevonden!');
|
console.log('gevonden!');
|
||||||
|
|||||||
Reference in New Issue
Block a user