Skip to content

Commit

Permalink
[frontend] Fix ctrl+click on DataTable (#8394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedae authored Sep 18, 2024
1 parent 0b50bb2 commit 7ed3504
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ const DataTableLine = ({
} else if (onLineClick) {
onLineClick(data);
} else if (navigable) {
navigate(link);
if (event.ctrlKey) {
window.open(link, '_blank');
} else {
navigate(link);
}
}
};

Expand Down Expand Up @@ -209,6 +213,7 @@ const DataTableLine = ({
width: 'calc(var(--col-navigate-size) * 1px)',
overflow: 'initial',
}}
onClick={(e) => e.stopPropagation()}
>
{actions && actions(data)}
{endWithNavigate && (
Expand Down

0 comments on commit 7ed3504

Please sign in to comment.