I have rule that checks if number in input is between 0 and 999, it works OK. Issue is that if I enter incorrect value like a and delete it then I still have error shown even for empty input.
It must have some simple solution, I just can't find it now.
I have left only important parts of the code.
<v-text-field
type="number"
:rules="numberRule"/>
// Vue component
data: () => ({
numberRule: [v => (!isNaN(parseFloat(v)) && v >= 0 && v <= 999) || 'Number has to be between 0 and 999']
})