Skip to content

Form validation rule binding trigger:'blur' can not lose focus to trigger #4868

@xpromise

Description

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

Version

3.0.0-alpha.9

Environment

vue@3.2.21 ant-design-vue@3.0.0-alpha.11

Reproduction link

https://github.com/xpromise/ant-design-vue-report

Steps to reproduce

<Textarea v-model:value="formState.desc" /> 确定 取消 <script setup> import { reactive } from "vue"; import { Card, Form, FormItem, Input, Textarea, Button } from "ant-design-vue"; const formState = reactive({ name: "", desc: "", }); const rules = reactive({ name: [{ required: true, message: "请输入名称", trigger: "blur" }], desc: [{ required: true, message: "请输入描述", trigger: "blur" }], }); const { validateInfos, validate } = Form.useForm(formState, rules); const submit = async () => { await validate(); }; </script>

What is expected?

失去焦点触发表单验证

What is actually happening?

什么都没有发生

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions