Commit 87baaad3 authored by rongxingsun's avatar rongxingsun Committed by hetech

Table: not display tooltip when cell is empty (#13152)

* Update table-body.js

* Update table-body.js
parent 2c32ff99
......@@ -314,7 +314,7 @@ export default {
// 判断是否text-overflow, 如果是就显示tooltip
const cellChild = event.target.querySelector('.cell');
if (!hasClass(cellChild, 'el-tooltip')) {
if (!(hasClass(cellChild, 'el-tooltip') && cellChild.childNodes.length)) {
return;
}
// use range width instead of scrollWidth to determine whether the text is overflowing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment