Skip to content

The event "validate" of form component doesn't exist but mentioned on docs #3673

@JamesChenX

Description

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

Version

2.0.0

Environment

vue 3.0.5

Reproduction link

The "validate" is mentioned on https://2x.antdv.com/components/form-cn#components-form-demo-useForm-merge,
but doesn't exist at all according to the source code:
https://github.com/vueComponent/ant-design-vue/blob/next/components/form/Form.tsx

Steps to reproduce

<a-form
:model="form"
:rules="rules"
@validate="onValidate">

What is expected?

The "validate" event should be called when a user changes the value of any form items.

What is actually happening?

'onValidate' won't be triggered at all because the "validate" doesn't exist at all, but https://2x.antdv.com/components/form-cn#components-form-demo-useForm-merge mentions the validate event, it should exist.

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