summaryrefslogtreecommitdiffstats
path: root/webapp/components/edit_post_modal.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-10-25 10:11:34 -0400
committerGitHub <noreply@github.com>2016-10-25 10:11:34 -0400
commit0741d3be0a927ea659591ef811795018fbac85d0 (patch)
tree68eac5cda8950eb3d29cf99dac8ae5b657552afa /webapp/components/edit_post_modal.jsx
parentf8182022b61a1f110a99fc027c26b20736beef1a (diff)
downloadchat-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/edit_post_modal.jsx')
-rw-r--r--webapp/components/edit_post_modal.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/edit_post_modal.jsx b/webapp/components/edit_post_modal.jsx
index 263fd31c2..2e2f208e6 100644
--- a/webapp/components/edit_post_modal.jsx
+++ b/webapp/components/edit_post_modal.jsx
@@ -31,7 +31,7 @@ export default class EditPostModal extends React.Component {
this.handleEditKeyPress = this.handleEditKeyPress.bind(this);
this.handleEditPostEvent = this.handleEditPostEvent.bind(this);
this.handleKeyDown = this.handleKeyDown.bind(this);
- this.handleInput = this.handleInput.bind(this);
+ this.handleChange = this.handleChange.bind(this);
this.onPreferenceChange = this.onPreferenceChange.bind(this);
this.onModalHidden = this.onModalHidden.bind(this);
this.onModalShow = this.onModalShow.bind(this);
@@ -89,7 +89,7 @@ export default class EditPostModal extends React.Component {
$('#edit_post').modal('hide');
}
- handleInput(e) {
+ handleChange(e) {
this.setState({
editText: e.target.value
});
@@ -230,7 +230,7 @@ export default class EditPostModal extends React.Component {
</div>
<div className='edit-modal-body modal-body'>
<Textbox
- onInput={this.handleInput}
+ onChange={this.handleChange}
onKeyPress={this.handleEditKeyPress}
onKeyDown={this.handleKeyDown}
messageText={this.state.editText}