react-textarea-autosize
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -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 |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
16738
10
6
1
1
1