<q-input
v-model="userForm.mobile"
type="text"
label="Mobile"
counter
maxlength="10"
color="info"
lazy-rules
:rules="[
(val) => (val && val.length > 0) || 'Mobile number is required',
(val) =>
(typeof val !== number) ||
'Mobile number should be valid',
]"
/>
I'm trying to do 2 validations, but this is not working, Trying to return an error if is it empty or not a number Really appreciate it if somebody could help thanks.