element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] Component `select` won't auto collapse when click outside of this component

Open reclay opened this issue 9 years ago • 2 comments

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

  1. Click the third select component: this component is expanded
  2. 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.

image

What is Expected?

This select component will auto collapse.

What is actually happening?

This select component doesn't collapse.

reclay avatar Sep 07 '17 07:09 reclay

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

element-bot avatar Sep 07 '17 07:09 element-bot

Fixed in #6973

Leopoldthecoder avatar Sep 12 '17 04:09 Leopoldthecoder