Skip to content

Commit

Permalink
refactor: disable tab trap on api or lander (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
grablack authored Oct 12, 2023
1 parent 50a7d37 commit ab92760
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/modal/v2/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ const { userAgent } = window.navigator;
export const isIframe = window.top !== window || isIosWebview(userAgent) || isAndroidWebview(userAgent);

export function setupTabTrap() {
// Disable tab trap functionality for modal lander
if (isLander) {
return;
}

const focusableElementsString =
"a[href], button, input, textarea, select, details, [tabindex]:not([tabindex='-1'])";

Expand Down

0 comments on commit ab92760

Please sign in to comment.