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.
1 parent 651e413 commit 53503efCopy full SHA for 53503ef
packages/@react-aria/utils/src/openLink.tsx
@@ -69,8 +69,10 @@ interface Modifiers {
69
}
70
71
export function shouldClientNavigate(link: HTMLAnchorElement, modifiers: Modifiers) {
72
+ // Use getAttribute here instead of link.target. Firefox will default link.target to "_parent" when inside an iframe.
73
+ let target = link.getAttribute('target');
74
return (
- (!link.target || link.target === '_self') &&
75
+ (!target || target === '_self') &&
76
link.origin === location.origin &&
77
!link.hasAttribute('download') &&
78
!modifiers.metaKey && // open in new tab (mac)
0 commit comments