Only add Input auto-resize handler to multiline inputs
parent
9c4a48597a
commit
9cc56e1937
|
@ -55,7 +55,9 @@ const factory = (FontIcon) => {
|
|||
};
|
||||
|
||||
componentDidMount () {
|
||||
window.addEventListener('resize', this.handleAutoresize);
|
||||
if (this.props.multiline) {
|
||||
window.addEventListener('resize', this.handleAutoresize);
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps (nextProps) {
|
||||
|
|
Loading…
Reference in New Issue