Picture of Daniel 450
Registered 14 years 34 days
Daniel 450 Monday, 19 June 2023, 08:28 AM
drag & drop is suppressed
Hello,

as discussed, as a reminder for Mathias, that in ui1.lib when calling body drag & drop is suppressed.
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Friday, 23 June 2023, 04:27 PM
Re: drag & drop is suppressed
Hello Daniel,

i have checked the ui1 Lib. Probably do you mean the following part?:

if (type == "body") {
this.container = document.body;
this.container.addEventListener("dragover", function (e) {
e = e || event;
e.stopPropagation();
e.preventDefault();
e.dataTransfer.dropEffect = "none";
});
}

This should only affect the body node of the app, and prevents the default behaviour of the browser.

You can define an own div element that handles the drag and drop events as you wish. Please check an example in this project:
https://github.com/innovaphone/jsdbfilesexample

Best Regards
Andreas Fink
← You can define your color theme preference here