Skip to content

Commit dd2ce1a

Browse files
committed
Don't hide text when rendering on the server side
1 parent ca2de6a commit dd2ce1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202

203203
var props = _objectWithoutProperties(_props, ['text', 'truncateText', 'line', 'showTitle', 'textTruncateChild', 'containerClassName']);
204204

205-
var renderText = '';
205+
var renderText = text;
206206
if (this.refs.scope) {
207207
renderText = this.getRenderText();
208208
}

src/TextTruncate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default class TextTruncate extends Component {
122122
...props
123123
} = this.props;
124124

125-
let renderText = '';
125+
let renderText = text;
126126
if (this.refs.scope) {
127127
renderText = this.getRenderText();
128128
}

0 commit comments

Comments
 (0)