mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Avoid a potential conflict with jquery.drag and use addEventListener to bind events.
This commit is contained in:
parent
87c86beb38
commit
173517985e
@ -100,9 +100,12 @@ define(
|
||||
}
|
||||
|
||||
// Prevent browser from opening the drag file.
|
||||
$container.bind('dragover drop', function (event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
// Using addEventListener to avoid conflict with jquery.drag
|
||||
['dragover', 'drop'].forEach((eventName)=>{
|
||||
$container[0].addEventListener(eventName, function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
if (that.elContainer) {
|
||||
|
Loading…
Reference in New Issue
Block a user