Skip to content

Problem with ui-sref-active and ui-grid #2554

Closed
@pgrm

Description

@pgrm

I have following scenario (using angular 1.5):

  • one long list with items. Can have up to ~a hundred items, implemented with ui-grid.
  • each row in this list is a link to the details of the item, which show up as a nested view above that list
    • this means, each row has a ui-sref=".details({id: row.entity.id})" - and this part works great (as far as I could see / test it
    • additionally, each row also has ui-sref-active="active-class-name" - and this doesn't work

When 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions