Socket
Socket
Sign inDemoInstall

react-textarea-autosize

Package Overview
Dependencies
Maintainers
3
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 4.0.4 to 4.0.5

4

lib/calculateNodeHeight.js

@@ -43,3 +43,3 @@ 'use strict';

hiddenTextarea.setAttribute('style', sizingStyle + ';' + HIDDEN_TEXTAREA_STYLE);
hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || '';
hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || 'x';

@@ -60,3 +60,3 @@ var minHeight = -Infinity;

// measure height of a textarea with a single row
hiddenTextarea.value = '';
hiddenTextarea.value = 'x';
var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;

@@ -63,0 +63,0 @@ if (minRows !== null) {

@@ -44,3 +44,3 @@ 'use strict';

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(TextareaAutosize).call(this, props));
var _this = _possibleConstructorReturn(this, (TextareaAutosize.__proto__ || Object.getPrototypeOf(TextareaAutosize)).call(this, props));

@@ -47,0 +47,0 @@ _this.state = {

{
"name": "react-textarea-autosize",
"description": "textarea component for React which grows with content",
"version": "4.0.4",
"author": {
"name": "Andrey Popp",
"email": "8mayday@gmail.com",
"url": "http://andreypopp.com"
},
"homepage": "https://github.com/andreypopp/react-textarea-autosize",
"eslintConfig": {
"extends": "prometheusresearch"
},
"keywords": [
"react",
"react-component",
"textarea",
"grow",
"autosize"
],
"version": "4.0.5",
"keywords": "autosize, grow, react, react-component, textarea",
"repository": "andreypopp/react-textarea-autosize",
"license": "MIT",
"main": "lib/TextareaAutosize.js",
"author": "Andrey Popp <8mayday@gmail.com> (https://andreypopp.com/)",
"scripts": {
"prepublish": "make clean build || true"
},
"peerDependencies": {
"react": ">=0.14.0 <16.0.0"
},
"repository": {
"type": "git",
"url": "git://github.com/andreypopp/react-textarea-autosize.git"
},
"devDependencies": {
"babel-cli": "^6.7.5",
"babel-cli": "^6.11.4",
"babel-preset-prometheusresearch": "^0.1.0",
"eslint": "^2.7.0",
"babelify": "^7.3.0",
"browserify": "^13.1.0",
"eslint": "^3.3.1",
"eslint-config-prometheusresearch": "^0.2.0",
"react": "^15.0.0"
"eslint-plugin-react": "^6.1.2",
"react": "^15.3.1",
"react-dom": "^15.3.1",
"watchify": "^3.7.0"
},
"dependencies": {}
"files": [
"lib"
]
}

@@ -7,3 +7,3 @@ # react-textarea-autosize

This module supports IE9 and above. PR welcome to add IE8 support.
This module supports IE9 and above.

@@ -30,3 +30,3 @@ ```javascript

http://andreypopp.github.io/react-textarea-autosize/
https://andreypopp.github.io/react-textarea-autosize/

@@ -33,0 +33,0 @@ ## Development

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