Automatically change the size of textarea (#2128)
This commit is contained in:
		@@ -63,6 +63,10 @@ const AutosuggestTextarea = React.createClass({
 | 
			
		||||
      this.props.onSuggestionsClearRequested();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // auto-resize textarea
 | 
			
		||||
    e.target.style.height = 'auto';
 | 
			
		||||
    e.target.style.height = `${e.target.scrollHeight}px`;
 | 
			
		||||
 | 
			
		||||
    this.props.onChange(e);
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user