We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d905382 + a99a848 commit e9067ffCopy full SHA for e9067ff
modules/Link.js
@@ -71,6 +71,14 @@ class Link extends Component {
71
if (clickResult === false || event.defaultPrevented === true)
72
allowTransition = false
73
74
+ // If target prop is set (e.g. to "_blank") let browser handle link.
75
+ if (this.props.target) {
76
+ if (!allowTransition)
77
+ event.preventDefault()
78
+
79
+ return
80
+ }
81
82
event.preventDefault()
83
84
if (allowTransition)
0 commit comments