Socket
Socket
Sign inDemoInstall

react-textarea-autosize

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-textarea-autosize - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

4

lib/calculateNodeHeight.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc