From 85f46650114bb19d0f251d839e41182c24316973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=9C=E9=91=AB?= Date: Fri, 21 Sep 2018 14:35:42 +0800 Subject: [PATCH] fix: compatible with Firefox 40.0.3 --- src/components/Ellipsis/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index 266e5a16..72fae052 100644 --- a/src/components/Ellipsis/index.js +++ b/src/components/Ellipsis/index.js @@ -95,7 +95,7 @@ export default class Ellipsis extends Component { computeLine = () => { const { lines } = this.props; if (lines && !isSupportLineClamp) { - const text = this.shadowChildren.innerText; + const text = this.shadowChildren.innerText || this.shadowChildren.textContent; const lineHeight = parseInt(getComputedStyle(this.root).lineHeight, 10); const targetHeight = lines * lineHeight; this.content.style.height = `${targetHeight}px`; -- GitLab