FIX: an `<a>` with a target of _blank wants a new window (#9607)
..even if it wraps an image
This commit is contained in:
parent
a4a7ee110b
commit
d908bf101d
|
@ -7,7 +7,7 @@ export function wantsNewWindow(e) {
|
||||||
e.metaKey ||
|
e.metaKey ||
|
||||||
e.ctrlKey ||
|
e.ctrlKey ||
|
||||||
(e.button && e.button !== 0) ||
|
(e.button && e.button !== 0) ||
|
||||||
(e.target && e.target.target === "_blank")
|
(e.currentTarget && e.currentTarget.target === "_blank")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue