Qinput v-model dont get updated



  • Hello,

    i am using a simple QInput for typing in a number. After the user input i check the value and call a function with the @change event. In the debugger the variable gets the correct value, but in the input field there are no changes by using v-model. Only when the input field lose the focus, then it gets updated.

    <q-input v-model=“deadline” type=“number” stack-label=“Tage” @change=“checkDays()”/>

    checkDays () {
    if (this.deadline >= 1000) {
    this.deadline = 1000
    }
    }

    What i’m doing wrong?



  • Not tested but instead of @change can you try v-on:keyup="checkDays()".


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.