FIX: an <a> with a target of _blank wants a new window

This commit is contained in:
Jeff Wong
2019-02-19 14:44:30 -08:00
parent 49e7073438
commit 246997dbd9

View File

@ -6,7 +6,8 @@ export function wantsNewWindow(e) {
e.shiftKey ||
e.metaKey ||
e.ctrlKey ||
(e.button && e.button !== 0)
(e.button && e.button !== 0) ||
(e.target && e.target.target === "_blank")
);
}