Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Component] [form-item] form-item 里嵌套一个dialog,dialog里的表单数据发生变化会触发form-item的校验 #16539

Open
luckylin87 opened this issue Apr 16, 2024 · 2 comments

Comments

@luckylin87
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.4.13
  • Element Plus Version: 2.7.0
  • Browser / OS: chrome/masos
  • Build Tool: Vite

Reproduction

Related Component

  • el-form-item

Reproduction Link

Element Plus Playground

Steps to reproduce

form-item里有一个dialog ,dialog里数据发生变化会触发form-item的验证规则
步骤:点击‘open’按钮,弹出对话框,checkbox直接选择

What is Expected?

dialog里数据发生变化 不触发form的校验

What is actually happening?

form-item里有一个dialog ,dialog里数据发生变化会触发form-item的验证规则

Additional comments

(empty)

@rhodi2436
Copy link

把item的触发方式改成blur就不会触发了。

@chenxch
Copy link
Member

chenxch commented Apr 16, 2024

<el-checkbox-group :validate-event="false">
...
</el-checkbox-group>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants