react-textarea-autosize
Advanced tools
Comparing version 2.5.2 to 2.5.3
@@ -42,3 +42,3 @@ 'use strict'; | ||
hiddenTextarea.setAttribute('style', sizingStyle + ';' + HIDDEN_TEXTAREA_STYLE); | ||
hiddenTextarea.value = uiTextNode.value ? uiTextNode.value : 'x'; | ||
hiddenTextarea.value = uiTextNode.value ? uiTextNode.value : ''; | ||
@@ -59,3 +59,3 @@ var minHeight = -Infinity; | ||
// measure height of a textarea with a single row | ||
hiddenTextarea.value = 'x'; | ||
hiddenTextarea.value = ''; | ||
var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; | ||
@@ -62,0 +62,0 @@ if (minRows !== null) { |
@@ -76,2 +76,3 @@ 'use strict'; | ||
this._resizeComponent(); | ||
window.addEventListener('resize', this._resizeComponent); | ||
} | ||
@@ -99,2 +100,3 @@ }, { | ||
this.clearNextFrame(); | ||
window.removeEventListener('resize', this._resizeComponent); | ||
} | ||
@@ -101,0 +103,0 @@ }, { |
{ | ||
"name": "react-textarea-autosize", | ||
"description": "textarea component for React which grows with content", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Andrey Popp", |
@@ -10,4 +10,2 @@ # react-textarea-autosize | ||
```javascript | ||
require('babel/polyfill'); // polyfill is required | ||
var Textarea = require('react-textarea-autosize'); | ||
@@ -14,0 +12,0 @@ |
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
28525
277
38