Andreas Fink
Moderator Registered 12 years 345 days
Andreas Fink (innovaphone) Friday, 23 June 2023, 04:27 PM in response to Daniel 450
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