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

Demos do not working #2

Open
anelad opened this issue Oct 22, 2018 · 1 comment
Open

Demos do not working #2

anelad opened this issue Oct 22, 2018 · 1 comment

Comments

@anelad
Copy link

anelad commented Oct 22, 2018

I want to use your library but I'm afraid demos do not work. When I drag, nothing reorders on both demos. Can you check them?

Here is the console error I got:

TypeError: angular.element(this.parentElement).offset is not a function. (In 'angular.element(this.parentElement).offset()', 'angular.element(this.parentElement).offset' is undefined)

@immsaurabh1
Copy link

immsaurabh1 commented Aug 11, 2019

// Fix to - BEGIN // resolved.offset.top error which was thrown by the library, refer below for changes! listTopY = angular.element(this.parentElement)[0].offsetTop; itemOffestTop = angular.element(e.target)[0].offsetTop; // listTopY = angular.element(this.parentElement).offset().top; // itemOffestTop = angular.element(e.target).position().top; // Fix to - END

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