-
Notifications
You must be signed in to change notification settings - Fork 3k
ui-sref needs two clicks after $state.go({notify false}) #2334
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
Comments
please provide a plnkr example |
Okay so I tried to create a plunker to show this behaviour: http://plnkr.co/edit/eCpU0RGXDZ4O1kZmg63I HOWEVER - I didn't fully succeed. That is to say: clicking ui-sref elements does immediatly change pages. Some odd things that might be related though:
Does that help? If more info is required please let me know and I'll try to answer asap. g2g now :p |
There are a few bugs around notify. Your odd things 1 sounds like a known bug. |
I've also encountered this bug. With release 0.2.14 I can't reproduce it, so I will stick with that version until it is fixed. Update: With 0.2.14 the nested routes seems to have problems, but with 0.2.13 everything seems to be fine... |
I have also this problem. |
Solution: #2003 |
I am facing same issue ? any solution ? |
same for me |
same As a simple workaround: wrap your and this should fix this call stack issue |
@ivanzvakoms that helped thanks. greetings to lviv. |
Thanks Ivanzvakoms, that worked |
I have this issue, and the timeout fix didn't work for me. Upvote. |
@josholdham ui-router contributors give all their effort to new version, so I think it would be better to find some workaround for this issue than waiting for fix. |
Just ran into this as well, and the timeout didn't work... For me this was happening with some links and not others and I realized the links/target states that were affected (requiring two clicks) all had Removing the resolves (and moving their logic into the controllers) fixed it for us. |
Same issue here. Tested with both 0.2.13 and 0.2.15. $timeout workaround didn't work. |
Same issue. any solution available? |
FYI, we no longer support |
This issue has been automatically marked as stale because it has not had This does not mean that the issue is invalid. Valid issues Thank you for your contributions. |
Short:
ui-sref needs two clicks after $state.go({notify false}).
Long(er):
I use $state.go('stateName', stateparams, {notify:false}); in my controller to update the url without reloading the entire page and its controller/dependencies. This seems to work fine. A side effect is that after the url was updated this way, when the user clicks a link on the page, it doesn't work the first click. When clicking the link a second time it does.
I'm not getting any exceptions or errors.
The text was updated successfully, but these errors were encountered: