This looks easy, but somehow wouldn't work. I have a text-field with an @blur listener to make a call to the server to check if the username typed exist in the database. Once the field loses focus, the method is called; if the username exists already, you get an error message which prompts you to enter a fresh username. All that works fine. However, if I move back into the field and correct the error by typing a username which doesn't exist, then I expect the method to be called again on losing focus from the field, so the new username can be checked, but that doesn't happen. So it looks like the @blur listener is called just once, the first time only. I have tried @focusout also. What am I doing wrong please?
<v-text-field label="Username" v-model="username" @blur="checkUsername"></v-text-field>
checkUsername method:
checkUsername(){
if (this.username != '') {
//make a call to the server to check if username exists, if it does, show error
}
}