Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit e0ceb4a

Browse files
<Link /> to respect Meta key (#139)
Co-authored-by: Christian Engel <[email protected]>
1 parent 4ac77da commit e0ceb4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Link.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {navigate, getBasepath} from "./router";
1919
*/
2020
export const setLinkProps = (props) => {
2121
const onClick = (e) => {
22-
if (!e.shiftKey && !e.ctrlKey && !e.altKey && props.target !== "_blank")) {
22+
if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey && props.target !== "_blank")) {
2323
e.preventDefault(); // prevent the link from actually navigating
2424
navigate(e.currentTarget.href);
2525
}

0 commit comments

Comments
 (0)