-
Notifications
You must be signed in to change notification settings - Fork 3k
Problem with ui-sref-active and ui-grid #2554
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 post a plunkr that demonstrates the issue. Thanks. |
@nateabele I'm currently working on a plunkr - in the meanwhile I wanted to share some findings: while I scroll through the grid, the states-array from stateDirectives#L371 becomes longer and longer. Eventually containing every possible state, which is, why they get marked as selected. Does this sound valid to you? Plunkr which reproduces that behavior will follow ASAP (hopefully) |
@nateabele plunkr is here: https://plnkr.co/edit/JNtNqMgcd4fGR01bnxZ8?p=preview you need to scroll around for a while to start seeing the problem. you can also select different items. The faster you scroll around the sooner it will start to appear. |
no |
When ui-state dynamicly changes watchers, make sure to update the ui-sref-active/eq Clear out old previous registered values. Closes #2554
When ui-state dynamicly changes watchers, make sure to update the ui-sref-active/eq Clear out old previous registered values. Closes #2554
I have following scenario (using angular 1.5):
ui-sref=".details({id: row.entity.id})"
- and this part works great (as far as I could see / test itui-sref-active="active-class-name"
- and this doesn't workWhen I scroll inside a long grid, random rows start popping up as selected.
I'm not entirely sure the bug is in ui-router and not angular-ui, this is just a feeling. Maybe somebody else had a similar setup and it worked? I'd like to hear about how to get it to work.
Thx
The text was updated successfully, but these errors were encountered: