diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-01-20 14:49:37 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-01-20 14:58:32 -0500 |
commit | d8149fb26982eab00f632d8bfc98f6a9cceebca6 (patch) | |
tree | 9c7245c697093f032331c07250f4b34b3026aa7d /web/react/components/textbox.jsx | |
parent | e4e3178e9440ab351a722d939f0af2637de2df9f (diff) | |
download | chat-d8149fb26982eab00f632d8bfc98f6a9cceebca6.tar.gz chat-d8149fb26982eab00f632d8bfc98f6a9cceebca6.tar.bz2 chat-d8149fb26982eab00f632d8bfc98f6a9cceebca6.zip |
Removed some vestigial code from the post textbox
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r-- | web/react/components/textbox.jsx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx index 1e9c7de74..62c0d5218 100644 --- a/web/react/components/textbox.jsx +++ b/web/react/components/textbox.jsx @@ -22,8 +22,6 @@ export default class Textbox extends React.Component { this.handleKeyPress = this.handleKeyPress.bind(this); this.handleKeyDown = this.handleKeyDown.bind(this); this.resize = this.resize.bind(this); - this.handleFocus = this.handleFocus.bind(this); - this.handleBlur = this.handleBlur.bind(this); this.showPreview = this.showPreview.bind(this); this.state = { @@ -121,20 +119,6 @@ export default class Textbox extends React.Component { } } - handleFocus() { - const elm = this.refs.message.getTextbox(); - if (elm.title === elm.value) { - elm.value = ''; - } - } - - handleBlur() { - const elm = this.refs.message.getTextbox(); - if (elm.value === '') { - elm.value = elm.title; - } - } - showPreview(e) { e.preventDefault(); e.target.blur(); @@ -184,9 +168,6 @@ export default class Textbox extends React.Component { onUserInput={this.props.onUserInput} onKeyPress={this.handleKeyPress} onKeyDown={this.handleKeyDown} - onFocus={this.handleFocus} - onBlur={this.handleBlur} - onPaste={this.handlePaste} style={{visibility: this.state.preview ? 'hidden' : 'visible'}} listComponent={SuggestionList} providers={this.suggestionProviders} |