Socket
Socket
Sign inDemoInstall

react-textarea-autosize

Package Overview
Dependencies
32
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

6

index.js

@@ -7,5 +7,3 @@ var React = require('react');

componentDidMount: function() {
if (this.props.autosize) {
window.jQuery(this.getDOMNode()).autosize();
}
window.jQuery(this.getDOMNode()).autosize();
},

@@ -18,5 +16,5 @@

render: function() {
return this.transferPropsTo(React.DOM.textarea(null, this.props.children));
return this.transferPropsTo(React.DOM.textarea({autosize: true}, this.props.children));
}
});
{
"name": "react-textarea-autosize",
"version": "0.2.0",
"version": "0.3.0",
"description": "textarea component for React which grows with content",

@@ -23,2 +23,3 @@ "main": "index.js",

"react",
"react-component",
"textarea",

@@ -25,0 +26,0 @@ "grow",

@@ -10,9 +10,6 @@ # react-textarea-autosize

<div>
<Textarea autosize></Textarea>
<Textarea></Textarea>
</div>,
document.body);
As you can see there's `autosize` boolean property which would activate
jquery-autosize plugin.
This component relies on jQuery to be globally accessible via `window.jQuery`.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc