Skip to content

Using data-primary-link only works once when not redirecting to a different page #4345

@brydonm

Description

@brydonm

Issue summary

The index table data-primary-link prop does not trigger a click/redirect after the first time. We think this is because of the isNavigating.current assignment on l101 of Row.tsx.

I'm not entirely sure of what the purpose is with isNavigating, but, it looks like it could almost be removed? Alternatively, it may just be able to be moved down below l110 after the if/else.

Expected behavior

It should keep triggering after the first click.

Actual behavior

It does not work after the first click.

Steps to reproduce the problem

  1. Use data-primary-link setup in IndexTable
  2. Click the link to add a URL param or use an onClick handler to stay on the same page
  3. Link no longer works

Reduced test case

https://codesandbox.io/s/unselectable-index-table-forked-utd6z

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.Priority: MediumNon-blocking regression, noticable inconcistency, or important featureno-issue-activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions