element Value error when [bug report] uses [autocomplete] to clear the input content

olqngx59  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(127)

Element UI version

2.13.1

OS/Browsers version

70.0.3538.102

Vue version

3.0.0-beta.9

https://codepen.io/rsenhuang/pen/JjYMgOx?editable=true%3Dhttps%3A%2F%2Felement.eleme.cn%2F

Steps to reproduce

https://codepen.io/rsenhuang/pen/JjYMgOx?editable=true%3Dhttps%3A%2F%2Felement.eleme.cn%2F

What is Expected?

there should not have any error when you clear what you inputed in autocomple

What is actually happening?

throw error: Cannot read property 'value' of undefined, which causes by inner input module emit change event with empty string but the autocomple module treats arguments[0] as an Object like 'event.target.value'.

wsxa1bj1

wsxa1bj11#

Translation of this issue:

Element UI version

2.13.1

OS/Browsers version

70.0.3538.102

Vue version

3.0.0-beta.9

https://codepen.io/rsenhuang/pen/JjYMgOx?editable=true%3Dhttps%3A%2F%2Felement.eleme.cn%2F

Steps to reproduce

https://codepen.io/rsenhuang/pen/JjYMgOx?editable=true%3Dhttps%3A%2F%2Felement.eleme.cn%2F

What is Expected?

there should not have any error when you clear what you inputed in autocomple

What is actually happening?

throw error: Cannot read property 'value' of undefined, which causes by inner input module emit change event with empty string but the autocomple module treats arguments[0] as an Object like 'event.target.value'.

hgqdbh6s

hgqdbh6s3#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题