We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b423b36 commit d1c88cfCopy full SHA for d1c88cf
src/Truncate.js
@@ -55,8 +55,6 @@ export default class Truncate extends Component {
55
text.parentNode.removeChild(text);
56
}
57
});
58
-
59
- window.addEventListener('resize', onResize);
60
61
62
componentDidUpdate(prevProps) {
@@ -83,9 +81,6 @@ export default class Truncate extends Component {
83
81
if (ellipsis) {
84
82
ellipsis.parentNode.removeChild(ellipsis);
85
86
87
- window.removeEventListener('resize', onResize);
88
89
window.cancelAnimationFrame(timeout);
90
91
0 commit comments