-
Notifications
You must be signed in to change notification settings - Fork 3k
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
0.2.16 and 1.0.0alpha0: ui-sref-active has slight delay #2503
Comments
Weird. Can you post a plunkr that demonstrates the issue? |
I use chrome. https://plnkr.co/edit/KYUqAvNWbGq5om6Qne11?p=preview |
I'll take a look at this before alpha.1 |
This was introduced in 0.2.16 https://plnkr.co/edit/4gfShkbPt7tDHp4jBBNM?p=preview |
This is related to the application of the class being pushed into the next cycle to prevent the race condition found in #1997. Should be a pretty low hanging fix. Want a PR against 0.2 or 1.0.0? |
Would prefer against 1.0. It should cherry pick pretty smoothly to legacy. I'd love a test too. |
We have to use latest ui router because it has transitionsProvider, we need transitionsProvider in order to properly handle transition to the state with rbac permissions https://github.com/angular-ui/ui-router/releases/tag/1.0.0alpha0 Old ui-router is deprecated https://github.com/angular-ui/ui-router/releases/tag/0.2.17 Process of migrating is pretty smooth, although there are couple bugs angular-ui/ui-router#2504 angular-ui/ui-router#2503 Change-Id: I67fc81adecf5ebf9cf294171d5583f8555696cee Reviewed-on: http://review.couchbase.org/59318 Reviewed-by: Dave Finlay <dave.finlay@couchbase.com> Tested-by: Dave Finlay <dave.finlay@couchbase.com>
fixed by using |
I noticed that ui-sref-active has slight delay that leads to flickering of elements with that directive. This is especially noticeable in case of reload: true, but that's not the issue if we are using ng-class="{selected: ('app.state' | includedByState)}
The text was updated successfully, but these errors were encountered: