angular dragdrop not working with IE

雨燕双飞 提交于 2019-12-11 18:04:38

问题


I'm using angular-dragdrop.js (http://codef0rmer.github.io/angular-dragdrop/#/) It works nicely on Chrome but generates error at drop in IE. (drag an item from a list and drop it to another list) I have a requirement that the app needs to work in IE8. I saw the error in console, apparently it is complaining about $timeout in the angular drag drop code:

$timeout(function(){this.mutateDraggable(v,u,o,i,s,l,e);this.mutateDroppable(d,u,o,s,f,a);this.callEventCallback(d,u.onDrop,n,r)}.bind(this))

Has anyone make this work in IE8? is there a work around?

Edit: I have tried 4 different angular based drag and drop, looking for dragging from list to list. Unfortunately none worked with IE8. I had to go back and use the jquery drag and drop (please see the jquery ui sortable api documentation at the jquery web site)

here is the plunker http://plnkr.co/edit/3ABkpbF158NBfi23lbR9?p=preview this is not ideal, at least it is working for me, and I still get to keep the ngModels for keeping everything in sync with the rest of the app.

来源:https://stackoverflow.com/questions/19731415/angular-dragdrop-not-working-with-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!