mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(dragdrop): Fix for broken drag drop behavior, fixes #2558
This commit is contained in:
@@ -31,6 +31,6 @@
|
||||
"commit": "4ff89cb0aa61070508e935729fb816fd46a58f60"
|
||||
},
|
||||
"_source": "git://github.com/angular-dragdrop/angular-dragdrop.git",
|
||||
"_target": "~1.1.0",
|
||||
"_target": "~1.1.1",
|
||||
"_originalSource": "angular-native-dragdrop"
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
function determineEffectAllowed(e) {
|
||||
// Chrome doesn't set dropEffect, so we have to work it out ourselves
|
||||
if (e.dataTransfer.dropEffect === 'none') {
|
||||
if (e.dataTransfer && e.dataTransfer.dropEffect === 'none') {
|
||||
if (e.dataTransfer.effectAllowed === 'copy' ||
|
||||
e.dataTransfer.effectAllowed === 'move') {
|
||||
e.dataTransfer.dropEffect = e.dataTransfer.effectAllowed;
|
||||
|
||||
Reference in New Issue
Block a user