summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-01-07 21:21:06 -0600
committerCorey Hulen <corey@hulen.com>2016-01-07 21:21:06 -0600
commit3327ae5cf69ba6988470337221ab2f7ea3ec76c8 (patch)
treea1ff50230846cd8bc7b399b5d6b4b6c7ec1e4c26 /web/react/components/create_post.jsx
parent5bcb9f1c50ed9c319d2a21f2ecb4816c51d18b40 (diff)
parent9d9eaec14f4e4a8bc3bda4ef19c980bef2bb467b (diff)
downloadchat-3327ae5cf69ba6988470337221ab2f7ea3ec76c8.tar.gz
chat-3327ae5cf69ba6988470337221ab2f7ea3ec76c8.tar.bz2
chat-3327ae5cf69ba6988470337221ab2f7ea3ec76c8.zip
Merge pull request #1821 from rgarmsen2295/plt-846
PLT-846 Disable the ability to drag and drop text
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r--web/react/components/create_post.jsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index e901b272a..a476863a3 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -40,7 +40,6 @@ export default class CreatePost extends React.Component {
this.handleUploadStart = this.handleUploadStart.bind(this);
this.handleFileUploadComplete = this.handleFileUploadComplete.bind(this);
this.handleUploadError = this.handleUploadError.bind(this);
- this.handleTextDrop = this.handleTextDrop.bind(this);
this.removePreview = this.removePreview.bind(this);
this.onChange = this.onChange.bind(this);
this.onPreferenceChange = this.onPreferenceChange.bind(this);
@@ -281,11 +280,6 @@ export default class CreatePost extends React.Component {
this.setState({uploadsInProgress: draft.uploadsInProgress, serverError: message});
}
}
- handleTextDrop(text) {
- const newText = this.state.messageText + text;
- this.handleUserInput(newText);
- Utils.setCaretPosition(ReactDOM.findDOMNode(this.refs.textbox.refs.message), newText.length);
- }
removePreview(id) {
const previews = Object.assign([], this.state.previews);
const uploadsInProgress = this.state.uploadsInProgress;
@@ -462,7 +456,6 @@ export default class CreatePost extends React.Component {
onUploadStart={this.handleUploadStart}
onFileUpload={this.handleFileUploadComplete}
onUploadError={this.handleUploadError}
- onTextDrop={this.handleTextDrop}
postType='post'
channelId=''
/>