From 292ad8efec8a63030b31f27911b8c85cf72e03a9 Mon Sep 17 00:00:00 2001 From: "Ryan.xu" Date: Wed, 15 Nov 2017 12:27:04 +0800 Subject: [PATCH] Table: fix table column show-overflow-tooltip bug Table: fix table column show-overflow-tooltip bug, low version Firefox without innerText, add textContent --- packages/table/src/table-body.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table/src/table-body.js b/packages/table/src/table-body.js index 89475f6df..50336dfc9 100644 --- a/packages/table/src/table-body.js +++ b/packages/table/src/table-body.js @@ -343,7 +343,7 @@ export default { if (hasClass(cellChild, 'el-tooltip') && cellChild.scrollWidth > cellChild.offsetWidth && this.$refs.tooltip) { const tooltip = this.$refs.tooltip; - this.tooltipContent = cell.innerText; + this.tooltipContent = cell.textContent || cell.innerText; tooltip.referenceElm = cell; tooltip.$refs.popper && (tooltip.$refs.popper.style.display = 'none'); tooltip.doDestroy();