Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]select 组件 on-clear事件赋值undefined问题 #446

Closed
yangxuehua opened this issue Apr 23, 2020 · 3 comments
Closed

[Bug Report]select 组件 on-clear事件赋值undefined问题 #446

yangxuehua opened this issue Apr 23, 2020 · 3 comments

Comments

@yangxuehua
Copy link

Environment

win10/chrome/vue2.6

Reproduction link

https://run.iviewui.com/ccTn8KU4

Steps to reproduce

在select组件上加上onclear,并在响应方法中对v-model的变量赋一个字符串常值,最后点“提交”针对此变量进行打印,显示undefined

What is expected?

变量要是显示成此前赋过的值

What is actually happening?

undefined

@es5es5
Copy link

es5es5 commented Apr 28, 2020

SAME ISSUE...!

I faced this problem too, please fix this issue.

I expect just '' but return undefined.

@CT66
Copy link

CT66 commented Jul 3, 2020

升级到4.3.0。开启clearable 属性后依旧还是返回undefined,而不是“”

@icarusion
Copy link
Member

v-model 必须指定已存在Option的,且在 nextTick
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants