summaryrefslogtreecommitdiffstats
path: root/webapp/components/textbox.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-06-06 15:54:02 -0300
committerJoram Wilander <jwawilander@gmail.com>2016-06-06 14:54:02 -0400
commit65f51c7bc4bb0b85532a23171306ba7d331c2fd9 (patch)
treec3c5bb661dd962447c198bb3f8c54b2a3f47d413 /webapp/components/textbox.jsx
parentc0d1b8fbb9a141b942d73ad4869e612cdf01bbcd (diff)
downloadchat-65f51c7bc4bb0b85532a23171306ba7d331c2fd9.tar.gz
chat-65f51c7bc4bb0b85532a23171306ba7d331c2fd9.tar.bz2
chat-65f51c7bc4bb0b85532a23171306ba7d331c2fd9.zip
PLT-3056 Fix Unable to type quickly in post textbox in IE11 (#3249)
Diffstat (limited to 'webapp/components/textbox.jsx')
-rw-r--r--webapp/components/textbox.jsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/webapp/components/textbox.jsx b/webapp/components/textbox.jsx
index 7f5ecea09..41db38837 100644
--- a/webapp/components/textbox.jsx
+++ b/webapp/components/textbox.jsx
@@ -176,6 +176,11 @@ export default class Textbox extends React.Component {
</div>
);
+ const otherProps = {};
+ if (!this.props.typing) {
+ otherProps.value = this.props.messageText;
+ }
+
return (
<div
ref='wrapper'
@@ -189,7 +194,6 @@ export default class Textbox extends React.Component {
spellCheck='true'
maxLength={Constants.MAX_POST_LEN}
placeholder={this.props.createMessage}
- value={this.props.messageText}
onUserInput={this.props.onUserInput}
onKeyPress={this.handleKeyPress}
onKeyDown={this.handleKeyDown}
@@ -198,6 +202,7 @@ export default class Textbox extends React.Component {
listComponent={SuggestionList}
providers={this.suggestionProviders}
channelId={this.props.channelId}
+ {...otherProps}
/>
<div
ref='preview'
@@ -238,5 +243,6 @@ Textbox.propTypes = {
onKeyPress: React.PropTypes.func.isRequired,
createMessage: React.PropTypes.string.isRequired,
onKeyDown: React.PropTypes.func,
- supportsCommands: React.PropTypes.bool.isRequired
+ supportsCommands: React.PropTypes.bool.isRequired,
+ typing: React.PropTypes.bool.isRequired
};