Skip to content

[Bug Report][3.10.5] Validation rule number works with errors (triggers on 0 and on blank value) #22192

@FragsterAt

Description

@FragsterAt

Environment

Vuetify Version: 3.10.5
Vue Version: 3.5.22
OS: Windows 10 (current)

Steps to reproduce

  1. open reproduction link.
  2. inputs with label 'current behaviour' triggers validation errors
  3. input with 'correct behavious' is expected result

Expected Behavior

'0' and '' not triggers validation error

Actual Behavior

both '0' and '' trigger validation error

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

IMHO '0' and '' is valid values for 'number' rule, '0' IS a number, for defend from '' we can use 'required' rule

Images

Metadata

Metadata

Assignees

No one assigned

    Labels

    E: validationT: bugFunctionality that does not work as intended/expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions