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

z9zf31ra  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(92)

Element UI version

2.14.1

OS/Browsers version

Windows 10

Vue version

2.6.12

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

l7wslrjt

l7wslrjt1#

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

gmol1639

gmol16392#

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.

相关问题