Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltantothcom committed Jan 15, 2019
1 parent 6d36438 commit 55ec7f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,14 @@ var ClampLines = function (_PureComponent) {
window.removeEventListener('resize', this.debounced);
}
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
if (prevProps.text !== this.props.text) {
this.original = this.props.text;
this.clampLines();
}
}
}, {
key: 'debounce',
value: function debounce(func, wait, immediate) {
Expand Down

0 comments on commit 55ec7f8

Please sign in to comment.