element [Bug Report] el-checkbox validate time error

nkoocmlb  于 2022-11-13  发布在  其他
关注(0)|答案(3)|浏览(165)

Element UI version

2.15.7

OS/Browsers version

macOS / Chrome 94.0.4606.61(正式版本) (x86_64)

Vue version

2.6.14

https://codepen.io/wrma/pen/mdBJbxV?editors=1010

Steps to reproduce

  1. select a checkbox
  2. show error tips
  3. clear checkbox
  4. error tips disappear

(ps: the input is normal)

What is Expected?

when checkbox is selected, don't show error tip

What is actually happening?

show error tip

t8e9dugd

t8e9dugd1#

Translation of this issue:

Element UI version

2.15.7

OS/Browsers version

MacOS / Chrome 94.0.4606.61 (official version) (x86_64)

Vue version

2.6.14

https://codepen.io/wrma/pen/mdBJbxV?editors=1010

Steps to reproduce

  1. select a checkbox
  2. show error tips
  3. clear checkbox
  4. error tips disappear
    (ps: the input is normal)

What is Expected?

when checkbox is selected, don't show error tip

What is actually happening?

show error tip

ecbunoof

ecbunoof2#

v-model must matched the prop,so it should be 'ruleForm.type',you can try it

carvr3hs

carvr3hs3#

v-model must matched the prop,so it should be 'ruleForm.type',you can try it

But the input work in my case

When el-form-item validate, it get value from ruleForm and validate;
The input trigger change event before validate, but the checkbox after

相关问题