Skip to content

Commit

Permalink
fix: compatible with Firefox 40.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
宜鑫 authored and afc163 committed Sep 21, 2018
1 parent 6a528af commit 85f4665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Ellipsis/index.js
Expand Up @@ -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`;
Expand Down

0 comments on commit 85f4665

Please sign in to comment.