From c3b23ff859f877fa5836b9427ea512516b6541b9 Mon Sep 17 00:00:00 2001 From: Mat Silva Date: Tue, 13 Oct 2015 21:23:04 -0400 Subject: [PATCH] issue/1870: Fix if newHeight is 0, use rowsHeight instead --- src/enhanced-textarea.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/enhanced-textarea.jsx b/src/enhanced-textarea.jsx index 3a9a47e3914706..27c47d9743a0e6 100644 --- a/src/enhanced-textarea.jsx +++ b/src/enhanced-textarea.jsx @@ -120,6 +120,8 @@ const EnhancedTextarea = React.createClass({ newHeight = Math.min(this.props.rowsMax * rowsHeight, newHeight); } + newHeight = Math.max(newHeight, rowsHeight); + if (this.state.height !== newHeight) { this.setState({ height: newHeight,