Skip if meta/ctrl/shift/alt/middle-click
This commit is contained in:
parent
7119a78711
commit
616b9fcf02
|
@ -1091,6 +1091,15 @@ function Status({
|
|||
<Link
|
||||
to={instance ? `/${instance}/s/${id}` : `/s/${id}`}
|
||||
onClick={(e) => {
|
||||
if (
|
||||
e.metaKey ||
|
||||
e.ctrlKey ||
|
||||
e.shiftKey ||
|
||||
e.altKey ||
|
||||
e.which === 2
|
||||
) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
onStatusLinkClick?.(e, status);
|
||||
|
|
Loading…
Reference in a new issue