-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Programmatic bootstrapping makes routed links navigate on mouse down in Firefox #2668
Comments
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months. Please try the newest versions of Angular ( Thanks! |
Still reproducible in 1.0.7 and 1.2.0-rc1 |
Yup, I am having this same issue with Firefox 28, 29 with angular v1.3.0-build.2647+sha.fcc3a7a. Using firebug I think I found what could be the problem. Firefox right click is Line 634 in 498835a
UI-Router has this logic to allow browser handling except for left clicks I dunno if angular location is doing something fancy when |
Looks like that could be causing the problem. I think there needs to be a I'll clone the repo now and see if that fixes it, if it does I'll submit a PR. |
You need to wait for the DOM to be parsed, unfortunately, because otherwise the $compiler won't really do its job right. Here's an example http://plnkr.co/edit/nGtVeAqG0tjbtkYYZ1Hl?p=preview (in some browsers, the DOM may be loaded before scripts are evaluated, in others it may not be) --- the right click thing is an issue with $location though... I think we can't always trust But I guess we should change this to '> 1' rather than '== 2' to benefit Mozilla, for now |
Yeah, I thought it would be too easy for that to be the problem. It didn't work. Just read your comment update, @caitp and you're right doing |
The right-click behavior is fixed in 1.3.16 and 1.4.0. |
Normally when one right-clicks on links one would expect a context menu, however under certain conditions navigation occurs instead.
Here's a test case
http://plnkr.co/edit/H6qR9BRwHEqoYzVlp1Dw
The text was updated successfully, but these errors were encountered: