Closed eduardodgarciac closed 5 years ago
QDecimal value must be a number, internally the component will parses that to a string before display it, and will parsed back when occurs a input event.
Checking again, I noticed the error occurs using rules.
If you add a rule like :rules="[v => v > 0 || 'error']"
will return "error" because is comparing against a string.
For example, this is my case. <q-decimal lang="es" :places="10" :precision="3" :step="1" label="N°" :rules="[v => v > 0 || 'error']" v-model="n"/>
do you can update to beta.0 and try again?
Now is working, thank you!!
When using ',' as decimal separator, could be good if the model can keep '.' as decimal separator because 1,1 is not a number in javascript, you have to handle it as string. Something like the existing "unmasked-value" prop.