Commit 292ad8ef authored by Ryan.xu's avatar Ryan.xu Committed by 杨奕

Table: fix table column show-overflow-tooltip bug

Table: fix table column show-overflow-tooltip bug, low version Firefox without innerText, add textContent
parent c7d3de95
......@@ -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();
......
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