diff --git a/web/react/components/file_upload.jsx b/web/react/components/file_upload.jsx
index eb461ae9ca..a479883c9b 100644
--- a/web/react/components/file_upload.jsx
+++ b/web/react/components/file_upload.jsx
@@ -113,39 +113,31 @@ module.exports = React.createClass({
var self = this;
if (this.props.postType === 'post') {
- $('body').on('dragover', '.app__content', function(e) {
+ $('body').on('dragover', '.post-list__table', function(e) {
e.preventDefault();
- e.stopPropagation();
});
- $('body').on('dragenter', '.app__content', function(e) {
+ $('body').on('dragenter', '.post-list__table', function(e) {
e.preventDefault();
- e.stopPropagation();
});
- $('body').on('dragend dragleave', '.app__content', function(e) {
+ $('body').on('dragleave', '.post-list__table', function(e) {
e.preventDefault();
- e.stopPropagation();
});
- $('body').on('drop', '.app__content', function(e) {
+ $('body').on('drop', '.post-list__table', function(e) {
e.preventDefault();
- e.stopPropagation();
self.handleDrop(e);
});
} else if (this.props.postType === 'comment') {
$('body').on('dragover', '.sidebar--right', function(e) {
e.preventDefault();
- e.stopPropagation();
});
$('body').on('dragenter', '.sidebar--right', function(e) {
e.preventDefault();
- e.stopPropagation();
});
- $('body').on('dragend dragleave', '.sidebar--right', function(e) {
+ $('body').on('dragleave', '.sidebar--right', function(e) {
e.preventDefault();
- e.stopPropagation();
});
$('body').on('drop', '.sidebar--right', function(e) {
e.preventDefault();
- e.stopPropagation();
self.handleDrop(e);
});
}
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index 4df78817aa..cf0c4c6639 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -280,6 +280,10 @@ module.exports = React.createClass({
}
);
},
+ handleDragEnter: function() {
+ console.log("HERE ENTER");
+ this.setState({fileDrag: true});
+ },
getInitialState: function() {
return getStateFromStores();
},
@@ -461,9 +465,14 @@ module.exports = React.createClass({
postCtls.push(