mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure drag/drop from the treeview works as expected on Firefox. Fixes #4429
This commit is contained in:
committed by
Dave Page
parent
15427334af
commit
0aa18fd466
@@ -161,6 +161,10 @@ export class Tree {
|
||||
}
|
||||
|
||||
origEvent.dataTransfer.setData('text', JSON.stringify(dropDetails));
|
||||
/* Required by Firefox */
|
||||
if(origEvent.dataTransfer.dropEffect) {
|
||||
origEvent.dataTransfer.dropEffect = 'move';
|
||||
}
|
||||
|
||||
/* setDragImage is not supported in IE. We leave it to
|
||||
* its default look and feel
|
||||
|
||||
Reference in New Issue
Block a user