Element: [Bug Report] table component, mouse slid through cell times (Failed to execute'setEnd'on'Range') error

Created on 15 May 2018  ·  5Comments  ·  Source: ElemeFE/element

Element UI version

2.3.8

OS/Browsers version

Mac OS/Chrome 67

Vue version

2.5.16

Reproduction Link

https://jsfiddle.net/b9pvwuuo/1/

Steps to reproduce

  1. 打开重现链接
  2. 鼠标滑过'姓名'那一列, 控制台报错 Failed to execute 'setEnd' on 'Range': There is no child at offset 1.

当el-table-column用prop时, prop的值在对象中不存在, 或者是空值时, 鼠标滑过该列就会报错
而使用< template slot-scope="scope" >则不会

What is Expected?

鼠标滑过空值的单元格不会报错

What is actually happening?

鼠标滑过空值的单元格报错

Most helpful comment

Fixed in #11137

All 5 comments

Translation of this issue:

Element UI version
2.3.8

OS/Browsers version
Mac OS/Chrome 67

Vue version
2.5.16

Reproduction Link
https://jsfiddle.net/b9pvwuuo/1/

Steps to reproduce

  1. open reappear link
  1. the mouse slid past the name of the column, the console reported Failed to execute'setEnd'on'Range': There is no child at at 1.
    When el-table-column uses prop, the value of prop will be wrong if the mouse slides across the column when the object is not present or empty.

And using