react-textarea-autosize
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -26,3 +26,10 @@ 'use strict'; | ||
prevProps.value !== this.props.value || | ||
this.props.value === undefined | ||
// We need to call `recalculateSize()` if component is used in | ||
// uncontrolled mode because the `<texarea />` will re-render itself in | ||
// that case. | ||
// | ||
// We check for `== null` to cover both `null` and `undefined`, | ||
// this is what React does check if component is used in uncontrolled | ||
// mode. | ||
this.props.value == null | ||
) { | ||
@@ -29,0 +36,0 @@ this.recalculateSize(); |
{ | ||
"name": "react-textarea-autosize", | ||
"description": "textarea component for React which grows with content", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Andrey Popp", |
Sorry, the diff of this file is not supported yet
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
7888
133