mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-83502 course: fix chrome file dropping in course page
This commit is contained in:
parent
ecfcf00d92
commit
a4cf29974f
3 changed files with 3 additions and 3 deletions
2
lib/amd/build/local/reactive/dragdrop.min.js
vendored
2
lib/amd/build/local/reactive/dragdrop.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
lib/amd/src/local/reactive/dragdrop.js
vendored
2
lib/amd/src/local/reactive/dragdrop.js
vendored
|
@ -347,8 +347,8 @@ export default class extends BaseComponent {
|
||||||
*/
|
*/
|
||||||
_dragOver(event) {
|
_dragOver(event) {
|
||||||
const dropdata = this._processEvent(event);
|
const dropdata = this._processEvent(event);
|
||||||
event.dataTransfer.dropEffect = (event.altKey) ? 'copy' : 'move';
|
|
||||||
if (dropdata && !this.dropzonevisible) {
|
if (dropdata && !this.dropzonevisible) {
|
||||||
|
event.dataTransfer.dropEffect = (event.altKey) ? 'copy' : 'move';
|
||||||
this.dropzonevisible = true;
|
this.dropzonevisible = true;
|
||||||
this.element.classList.add(this.classes.DRAGOVER);
|
this.element.classList.add(this.classes.DRAGOVER);
|
||||||
this._callParentMethod('showDropZone', dropdata, event);
|
this._callParentMethod('showDropZone', dropdata, event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue