react-textarea-autosize
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -57,2 +57,3 @@ 'use strict'; | ||
props = _extends({}, props); | ||
if (typeof valueLink === 'object') { | ||
@@ -62,5 +63,7 @@ props.value = this.props.valueLink.value; | ||
props.style = _extends({}, props.style, { | ||
overflow: 'hidden', | ||
height: this.state.height | ||
}); | ||
if (!props.style.maxHeight || props.style.maxHeight > props.style.height) { | ||
props.style.overflow = 'hidden'; | ||
} | ||
return _React2['default'].createElement('textarea', _extends({}, props, { onChange: this._onChange })); | ||
@@ -67,0 +70,0 @@ } |
{ | ||
"name": "react-textarea-autosize", | ||
"description": "textarea component for React which grows with content", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Andrey Popp", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26016
203