mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-34328 Correct usage of e.drop when catching missed drag/drop events
This commit is contained in:
parent
1e78b3e66f
commit
2b42518aa7
1 changed files with 1 additions and 1 deletions
2
lib/yui/dragdrop/dragdrop.js
vendored
2
lib/yui/dragdrop/dragdrop.js
vendored
|
@ -167,11 +167,11 @@ YUI.add('moodle-core-dragdrop', function(Y) {
|
|||
// we substitute them for the ease of use. For e.drop we use,
|
||||
// this.lastdroptarget (ghost node we use for indicating where to drop)
|
||||
e.drag = e.target;
|
||||
e.drop = this.lastdroptarget;
|
||||
// Check that drop object belong to correct group
|
||||
if (!e.drop || !e.drop.inGroup(this.groups)) {
|
||||
return;
|
||||
}
|
||||
e.drop = this.lastdroptarget;
|
||||
this.drag_dropmiss(e);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue