ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

The check box in [bug report] tree triggers async validator, causing an exception to be thrown when calling resetfields() #20685

Open xianghongai opened 3 years ago

xianghongai commented 3 years ago

Element UI version

2.14.1

OS/Browsers version

Windows 10

Vue version

2.6.12

Reproduction Link

https://github.com/ElemeFE/element/issues/new/choose

Steps to reproduce

封装一个 TreeSelect,需要与 FormItem 联动校验,现在在 resetFields 事件中触发了 Tree 中 Checkbox 组件,而 Checkbox 的 change 事件又触发了校验,引发了异常。

What is Expected?

Tree 中 Checkbox 组件点击不触发 validator

What is actually happening?

Tree 中 Checkbox 组件点击触发了 validator

element-bot commented 3 years ago

Translation of this issue:\n\n### Element UI version\n2.14.1\n\n### OS/Browsers version\nWindows 10\n\n### Vue version\n2.6.12\n\n### Reproduction Link\nhttps://github.com/ElemeFE/element/issues/new/choose\n\n### Steps to reproduce\nEncapsulating a treeselect requires linkage verification with formitem. Now, the checkbox component in tree is triggered in the resetfields event, and the checkbox change event triggers verification and raises an exception.\n\n### What is Expected?\nCheck box component in tree does not trigger validator\n\n### What is actually happening?\nThe check box component in tree triggers the validator\n\n

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.