ElemeFE / ElemeFE/element

el-autocomplete input change return undefined

Open
#19,281 6 comments 5 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

In the last version from element-ui@2.13.1 the component el-autocomplete have an issue when you type anything that is not in the suggestion list and change the focus or keyEnter

Replicate behaviour

- Type a string that is not exist into the suggestion list.

- Click on any part outside the input

Result:
`TypeError: "e.target is undefined"
ui 2.13.1/lib/index.js:1
VueJS 4
ui 2.13.1/lib/index.js:1
VueJS 3`

make reference to the el-input component into the onChange method. this line
`handleChange: function handleChange(event) {
this.$emit('change', event.target.value);
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.