Skip to content
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

misc(Table): allow to open row link in new tab #1973

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

ansmonjol
Copy link
Collaborator

Context

A customer asked to be able to open row link redirection in a new tab.

Description

We're not the best in term of accessibility and it's kinda hard to have a native a link into a table structure without increasing the complexity of the Table component.

I noticed we only use the onRowAction to execute a navigate all over the app, so decided to rename it and for it to return a string.
So we can check if meta or ctrl key are pressed to open in new tab, otherwise use the navigate from rect-router-dom as usual.
Put that into the same commit as pretty tied

Fixes ISSUE-615

Copy link
Collaborator

@stephenlago99 stephenlago99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, nice idea of unifying the logic like that!

@ansmonjol ansmonjol enabled auto-merge (rebase) January 8, 2025 09:36
@ansmonjol ansmonjol merged commit a4c245c into main Jan 8, 2025
4 checks passed
@ansmonjol ansmonjol deleted the table-row-link branch January 8, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants