Socket
Socket
Sign inDemoInstall

react-textarea-autosize

Package Overview
Dependencies
Maintainers
4
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 6.0.0-0 to 6.0.0

2

package.json
{
"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.
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