DHTMLX / scheduler

GPL version of JavaScript Event Scheduler
https://dhtmlx.com/docs/products/dhtmlxScheduler/
GNU General Public License v2.0
315 stars 111 forks source link

Drop Events not working on IE 11 #42

Closed arj060892 closed 5 years ago

arj060892 commented 5 years ago

Scheduler Version: v.3.3.11 IE Version: 11.666 or Emulator IE11 windows 8.1 Update Windows: 10 Jquery Version: 1.5 I'm trying to display lightbox when drag ends but it's not working on IE specific version but it works on all other browsers and other IE browser versions. I tried binding with onDragEnd & onBeforeEventChanged, but both events are not getting triggered But when I target IE browser to IE 9 everything works fine , don't know what is causing the issue

Code as follow :

scheduler.attachEvent("onDragEnd", function(id, mode, e){
    console.log(id);
    scheduler.showLightbox(id);
}); 

scheduler.attachEvent("onBeforeEventChanged", function (event_object, native_event, is_new, original) {
 scheduler.showLightbox(event_object.event_pid);
});

when i run this code block from console directly scheduler.showLightbox(12235654); lightbox gets dispalyed

AliceTarnovskaya commented 5 years ago

Hello!

If I understand you correctly, your problem resides in opening a lightbox after drag ends and you use events onDragEnd + onBeforeEventChanged. And it doesn't work in IE 11+, am I right?

I tried to repeat your situation in my code (you can find the example here: http://snippet.dhtmlx.com/53a43c650), but it works well, as I see. Does it work the same way at your side?

If the example works correctly, but you still have a problem on your page, please, can you prepare and send me some kind of an example that I can run and see the issue? Alternatively, you can use the snippet I've sent you (http://snippet.dhtmlx.com/53a43c650), modify it and send me an updated version where the issue can be seen.

Also, by the way, the handler of the event onBeforeEventChanged will not return items and cancel the action (meaning the scheduler event will revert to its original position after drag-and-drop). If it's not what you expect, add "return true" at the end of the handler. You can read more here: https://docs.dhtmlx.com/scheduler/api__scheduler_onbeforeeventchanged_event.html

AlexKlimenkov commented 5 years ago

Closing due to inactivity, feel free to reopen if there is any update