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

draggable handle doesnt work as expected. #143

Closed
timothymarois opened this issue Aug 25, 2020 · 1 comment
Closed

draggable handle doesnt work as expected. #143

timothymarois opened this issue Aug 25, 2020 · 1 comment

Comments

@timothymarois
Copy link

Setting a handle doesn't really work at all.

http://dsmorse.github.io/gridster.js/demos/custom-drag-handle.html

The example uses <header> element, but the only way I was able to make this work is using div as the handle. I tried using a class name .dragitem does not work. I tried using $('.dragitem') same result. Doesn't seem to understand what an element is unless its the element tag itself.

This isn't in the API documentation either, its only in the example.

@timothymarois
Copy link
Author

It looks like it was due to z-index within the element itself. increasing the index allowed the div to be above all other elements in the drag item. Assuming this is only looking at the first element in for click and not its parent elements, which is why its an issue, but luckily I can get around that for now.

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

1 participant