react-textarea-autosize
Advanced tools
Comparing version 6.0.0-0 to 6.0.0
{ | ||
"name": "react-textarea-autosize", | ||
"description": "textarea component for React which grows with content", | ||
"version": "6.0.0-0", | ||
"version": "6.0.0", | ||
"keywords": "autosize, grow, react, react-component, textarea", | ||
@@ -6,0 +6,0 @@ "repository": "andreypopp/react-textarea-autosize", |
@@ -39,14 +39,19 @@ [![npm version](https://img.shields.io/npm/v/react-textarea-autosize.svg)](https://www.npmjs.com/package/react-textarea-autosize) | ||
Get a ref to inner textarea: | ||
```js | ||
<Textarea inputRef={(tag) => this.textarea = tag} /> | ||
<Textarea inputRef={tag => (this.textarea = tag)} /> | ||
``` | ||
And then call a focus on that ref: | ||
```js | ||
this.textarea.focus() | ||
this.textarea.focus(); | ||
``` | ||
To autofocus: | ||
```js | ||
<Textarea autoFocus /> | ||
``` | ||
(all HTML attributes are passed to inner textarea) | ||
@@ -80,5 +85,5 @@ | ||
This will run eslint, compile sources from `src/` to `lib/`, `es/` and `dist/`, | ||
bump a version in `package.json` and then create a new git commit with tag. If | ||
tests or linter fails — commit won't be created. If tasks succeed it publishes | ||
to npm and pushes a tag to github. | ||
This will run eslint, compile sources from `src/` to `dist/`, bump a version in | ||
`package.json` and then create a new git commit with tag. If tests or linter | ||
fails — commit won't be created. If tasks succeed it publishes to npm and | ||
pushes a tag to github. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
88
0
77375