react-textarea-autosize
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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`. |
2982
13
15