Skip to content

[Bug Report] modify the value of el-select does not trigger validation #11548

@changexbc

Description

@changexbc

Element UI version

2.4.0

OS/Browsers version

macOS / Chrome 67.0.3396.62

Vue version

2.5.16

Reproduction Link

https://jsfiddle.net/64wjqbLc/5/

Steps to reproduce

首先点击「校验」按钮触发form的validate方法,如果此时表单数据如果为空,会显示请选择和请填写的提示。
然后点击「设置为浙江」按钮修改表单中el-select和el-input绑定的值,这时因为el-input因为值被修改所以再次触发了校验,因为符合校验规则所以错误提示消失了,但是el-select却没有触发校验规则,如果此时在点击「校验」按钮则再次触发表单所有校验el-select的错误提示也消失。

What is Expected?

因为在实际开发中经常会有动态修改el-select值的情况,所以希望el-select 也可以像 el-input一样在动态修改的时候可以触发校验。

What is actually happening?

el-select 在动态修改的时候没有触发校验。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions