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

Plugin not working with jquery #26

Closed
cvile opened this issue Jan 14, 2016 · 3 comments
Closed

Plugin not working with jquery #26

cvile opened this issue Jan 14, 2016 · 3 comments

Comments

@cvile
Copy link

cvile commented Jan 14, 2016

Greetings, i struggle to implement drag n drop feature (with resize) on columns. I have noticed that if i remove jquery (which is referenced above angular.js dependency) plugin does work, if i try to reorder columns with jquery included, an error occurs.

Uncaught TypeError: Cannot read property 'setData' of undefined in object-table.js on line 7. The same for getData function.

Another problem i have noticed, even if i remove jquery from index and reorder works (on latest chrome, firefox and safari) resizing of columns not working in chrome (without errors) but still works in safari and firefox. Dont have idea why so.

@cvile
Copy link
Author

cvile commented Jan 14, 2016

It seems when you change in draggableDirective.js e.dataTransfer.setData ... to e.originalEvent.dataTransfer.setData (also in object-table.js) everything seems to work again xD

Btw i have noticed that reordering columns (drag n drop) not working on mobile devices via browser. Do you have any idea why? tnx in advance...

Best regards.

@ekokotov
Copy link
Owner

Because here is no touch events for mobile devices. May be enable drag-n-drop by long touch... something like this. According this issue... I will test it with jquery to find a problem. Thanks for you comment.

@ekokotov
Copy link
Owner

Please try to update to new version. Should be fixed. + added on-edit event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants