Element UI version
2.15.7
OS/Browsers version
macOS / Chrome 94.0.4606.61(正式版本) (x86_64)
Vue version
2.6.14
Reproduction Link
https://codepen.io/wrma/pen/mdBJbxV?editors=1010
Steps to reproduce
- select a checkbox
- show error tips
- clear checkbox
- 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
3条答案
按热度按时间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
Reproduction Link
https://codepen.io/wrma/pen/mdBJbxV?editors=1010
Steps to reproduce
(ps: the input is normal)
What is Expected?
when checkbox is selected, don't show error tip
What is actually happening?
show error tip
ecbunoof2#
v-model must matched the prop,so it should be 'ruleForm.type',you can try it
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