element
element copied to clipboard
[Bug Report] Component `select` won't auto collapse when click outside of this component
Element UI version
1.4.4
OS/Browsers version
chrome 60
Vue version
2.4.0
Reproduction Link
https://jsfiddle.net/793n0uLe/1/
Steps to reproduce
Steps to reproduce
- Click the third
selectcomponent: this component is expanded - Click outside of this component: this component doesn't collapse.
This issue is caused by nodeList(in clickoutside.js) deleting incorrect item, item which to be deleted shouldn't determined by id.

What is Expected?
This select component will auto collapse.
What is actually happening?
This select component doesn't collapse.
Translation of this issue:
Element UI version
1.4.4
OS/Browsers version
Chrome 60
Vue version
2.4.0
Reproduction Link
https://jsfiddle.net/793n0uLe/1/
Steps to reproduce
The third drop-down box, click elsewhere, will not be retracted.
Clickoutside.js through the ID to determine elements, resulting in errors to delete elements. image
What is Expected?
Contract
What is actually happening?
Expand
Fixed in #6973