refs #1046 Show drag recieve modal when the target is file

This commit is contained in:
AkiraFukushima 2019-09-28 23:21:13 +09:00
parent ad3f4ff706
commit bc12bae246
1 changed files with 4 additions and 3 deletions

View File

@ -129,9 +129,10 @@ export default {
return false
},
onDragEnter(e) {
console.log(e)
// this.dropTarget = e.target
// this.droppableVisible = true
if (e.dataTransfer.types.indexOf('Files') >= 0) {
this.dropTarget = e.target
this.droppableVisible = true
}
},
onDragLeave(e) {
if (e.target === this.dropTarget) {