fix(input): only remove resize event listerner if it exists
parent
9a4f5538dc
commit
75487fb9a7
|
@ -70,7 +70,7 @@ const factory = (FontIcon) => {
|
|||
}
|
||||
|
||||
componentWillUnmount () {
|
||||
window.removeEventListener('resize', this.handleAutoresize);
|
||||
if (this.props.multiline) window.removeEventListener('resize', this.handleAutoresize);
|
||||
}
|
||||
|
||||
handleChange = (event) => {
|
||||
|
|
Loading…
Reference in New Issue