Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and Drop not working in IE11 #632

Closed
gatapia opened this issue Jul 20, 2016 · 2 comments
Closed

Drag and Drop not working in IE11 #632

gatapia opened this issue Jul 20, 2016 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@gatapia
Copy link
Contributor

gatapia commented Jul 20, 2016

On demo page: http://www.primefaces.org/primeng/#/dragdrop

Just try to drag into the table. Error is:

SCRIPT5022: EXCEPTION: Error in showcase/demo/dragdrop/dragdropdemo.html:23:20
ORIGINAL EXCEPTION: Error: Unexpected call to method or property access.
ORIGINAL STACKTRACE:
Error: Unexpected call to method or property access.
   at Draggable.prototype.dragStart (eval code:26:13)
   at _View_anonymous_token_68_1.prototype._handle_dragstart_0_2 (Function code:1772:3)
   at Anonymous function (eval code:366:17)
   at Anonymous function (eval code:246:9)
   at Anonymous function (eval code:20:104)
   at ZoneDelegate.prototype.invoke (http://www.primefaces.org/primeng/node_modules/zone.js/dist/zone.js:321:14)
   at onInvoke (eval code:46:25)
   at ZoneDelegate.prototype.invoke (http://www.primefaces.org/primeng/node_modules/zone.js/dist/zone.js:321:14)
   at Zone.prototype.runGuarded (http://www.primefaces.org/primeng/node_modules/zone.js/dist/zone.js:230:22)
   at NgZoneImpl.prototype.runInnerGuarded (eval code:79:60)
ERROR CONTEXT:
[object Object]
File: zone.js, Line: 260, Column: 26
@billdwhite
Copy link

Same problem here

@arminfelke
Copy link

It seems that the code in line 37 of file "primeng/components/dragdrop/dragdrop.ts" causes the issue with IE11:

event.dataTransfer.setData(this.scope, this.scope);

this.scope is passed twice - as the format and as the data. I think it should be something like the following (which would at least make it work in IE11):

event.dataTransfer.setData('text', this.scope);

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 24, 2016
@cagataycivici cagataycivici added this to the 1.0.1 milestone Nov 24, 2016
@cagataycivici cagataycivici self-assigned this Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

4 participants