diff options
author | Lochlan McBride <lochlan.mcbride@bigtincan.com> | 2016-08-05 18:14:26 +1000 |
---|---|---|
committer | Lochlan McBride <lochlan.mcbride@bigtincan.com> | 2016-08-05 18:14:26 +1000 |
commit | 8263b1a99d9a08401c3d7745fcbebc49714c9c6f (patch) | |
tree | 7c8c6a97e317b10ad9946a4f6e9d4c22811a0457 /src | |
parent | 724e6631e79b698094c4b2f7bd984e08f340e18e (diff) | |
download | react-autosize-textarea-8263b1a99d9a08401c3d7745fcbebc49714c9c6f.zip react-autosize-textarea-8263b1a99d9a08401c3d7745fcbebc49714c9c6f.tar.gz react-autosize-textarea-8263b1a99d9a08401c3d7745fcbebc49714c9c6f.tar.bz2 |
prevent onResize passing to textarea, fixes react warning
Diffstat (limited to 'src')
-rw-r--r-- | src/TextareaAutosize.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TextareaAutosize.js b/src/TextareaAutosize.js index 06543b5..ce258a7 100644 --- a/src/TextareaAutosize.js +++ b/src/TextareaAutosize.js @@ -50,7 +50,7 @@ export default class TextareaAutosize extends React.Component { getValue = ({ valueLink, value }) => valueLink ? valueLink.value : value; render() { - const { children, ...props } = this.props; + const { children, onResize, ...props } = this.props; // eslint-disable-line no-unused-vars return ( <textarea {...props} ref='textarea'> {children} |