quasar icon indicating copy to clipboard operation
quasar copied to clipboard

Using clearable in masked input set model to empty string instead of null

Open lucianobosco opened this issue 2 years ago • 0 comments

What happened?

When using mask property and clearable on q-input, once input is cleared, the model value is "" instead of null

What did you expect to happen?

The input should be cleared as null

Reproduction URL

https://codepen.io/lucianobosco/pen/eYMRyOe

How to reproduce?

<q-input
    v-model="date"
    clearable
    mask="##/##/####"
    label="Date" /> 

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

lucianobosco avatar Jul 22 '22 22:07 lucianobosco