Templarian / ui.bootstrap.contextMenu

AngularJS Bootstrap UI Context Menu
MIT License
259 stars 127 forks source link

Prevent default click event from happening #1

Closed popthestack closed 9 years ago

popthestack commented 9 years ago

When clicking a menu item while scrolled down a bit, the page jumps up to the top. The # in the URL is only visible for a second, but it happens.

This is so the page doesn't jump up to the top after clicking a menu item.

Thanks!

Templarian commented 9 years ago

Will update the demo later tonight. Merged the request.

Thanks!

Templarian commented 9 years ago

By the way for anyone reading this. I don't notice a page jumping issue in 1.3.x, but can reproduce the issue in 1.2.x. I assume that is what @popthestack's fix was for.

popthestack commented 9 years ago

Ah, yep. I'm stuck on 1.2.x for a while.

Templarian commented 9 years ago

Same for work, but I don't use this directive there. 😎