Skip to content

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

@lucianobosco

Description

@lucianobosco

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions