mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix #221
This commit is contained in:
parent
48da7abfc4
commit
9c55559d02
1 changed files with 1 additions and 3 deletions
|
@ -359,10 +359,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
this.ondragover = e => {
|
this.ondragover = e => {
|
||||||
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
this.draghover = true;
|
this.draghover = true;
|
||||||
e.dataTransfer.dropEffect = e.dataTransfer.effectAllowed == 'all' ? 'copy' : 'move';
|
e.dataTransfer.dropEffect = e.dataTransfer.effectAllowed == 'all' ? 'copy' : 'move';
|
||||||
return false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.ondragenter = e => {
|
this.ondragenter = e => {
|
||||||
|
@ -382,8 +382,6 @@
|
||||||
if (e.dataTransfer.files.length > 0) {
|
if (e.dataTransfer.files.length > 0) {
|
||||||
e.dataTransfer.files.forEach(this.upload);
|
e.dataTransfer.files.forEach(this.upload);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onkeydown = e => {
|
this.onkeydown = e => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue