FIX: an `<a>` with a target of _blank wants a new window (#9607)

..even if it wraps an image
This commit is contained in:
Artem Vasiliev 2020-05-01 18:05:36 +03:00 committed by GitHub
parent a4a7ee110b
commit d908bf101d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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