fix(input): only remove resize event listerner if it exists

old
Simon Selg 2016-08-04 03:40:10 +02:00
parent 9a4f5538dc
commit 75487fb9a7
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ const factory = (FontIcon) => {
}
componentWillUnmount () {
window.removeEventListener('resize', this.handleAutoresize);
if (this.props.multiline) window.removeEventListener('resize', this.handleAutoresize);
}
handleChange = (event) => {