Skip to content

select 是否可以添加阻止值变化事件 #2661

@xuejiaomeng

Description

@xuejiaomeng
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.4

Environment

vue 2.5.17 ,Chrome浏览器, mac

Reproduction link

https://www.antdv.com/components/select-cn/

Steps to reproduce

select在选择时,添加验证失败,没有办法阻止数据变化,change不支持stop

What is expected?

select在选择时,添加验证失败,阻止数据变化,即有个beforeChange方法,来添加逻辑处理,可以人为的不触发change事件

What is actually happening?

在change方法前面添加验证,没法阻止数据变化

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions