diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-10-25 10:11:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 10:11:34 -0400 |
commit | 0741d3be0a927ea659591ef811795018fbac85d0 (patch) | |
tree | 68eac5cda8950eb3d29cf99dac8ae5b657552afa /webapp/components/textbox.jsx | |
parent | f8182022b61a1f110a99fc027c26b20736beef1a (diff) | |
download | chat-0741d3be0a927ea659591ef811795018fbac85d0.tar.gz chat-0741d3be0a927ea659591ef811795018fbac85d0.tar.bz2 chat-0741d3be0a927ea659591ef811795018fbac85d0.zip |
PLT-4404 Replace calls to onInput with onChange to better support IE11 (#4315)
* Replace calls to onInput with onChange to better support IE11
* Replaced react-textarea-autosize with react-autosize-textarea
Diffstat (limited to 'webapp/components/textbox.jsx')
-rw-r--r-- | webapp/components/textbox.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/textbox.jsx b/webapp/components/textbox.jsx index 44468a67a..bf87d4d45 100644 --- a/webapp/components/textbox.jsx +++ b/webapp/components/textbox.jsx @@ -206,7 +206,7 @@ export default class Textbox extends React.Component { spellCheck='true' maxLength={Constants.MAX_POST_LEN} placeholder={this.props.createMessage} - onInput={this.props.onInput} + onChange={this.props.onChange} onKeyPress={this.handleKeyPress} onKeyDown={this.handleKeyDown} onHeightChange={this.handleHeightChange} @@ -251,7 +251,7 @@ Textbox.propTypes = { id: React.PropTypes.string.isRequired, channelId: React.PropTypes.string, messageText: React.PropTypes.string.isRequired, - onInput: React.PropTypes.func.isRequired, + onChange: React.PropTypes.func.isRequired, onKeyPress: React.PropTypes.func.isRequired, createMessage: React.PropTypes.string.isRequired, onKeyDown: React.PropTypes.func, |