refs #1046 Show drag recieve modal when the target is file
This commit is contained in:
parent
ad3f4ff706
commit
bc12bae246
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue