Skip to content

After validateFirst is set to true, multiple validation failure prompts will still be displayed at the same time #6187

@chenkby

Description

@chenkby
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.14

Environment

macOS 13.0.1,Chrome 108.0.5359.124 (x86_64),vue 3.2.45

Reproduction link

Edit on CodeSandbox

Steps to reproduce

当设置验证规则为:{type: 'integer', required:true}时,如果绑定值为空,会同时显示required和integer的错误提示。(可删除示例中的age的值重现)

What is expected?

只显示第一个错误提示

What is actually happening?

是否有其他方式可以达到只显示第一个错误提示的目的?

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