Skip to content

Commit

Permalink
Merge pull request #1310 from Bynder/fix/FSB-6089_App-is-unresponsive…
Browse files Browse the repository at this point in the history
…-when-used-in-Safari-browser

fix/FSB-6089_App-is-unresponsive-when-used-in-Safari-browser
  • Loading branch information
timbryandev authored Oct 5, 2023
2 parents 7e7ab9b + bfc5d7b commit 624a785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/BoundaryClickWatcher/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ interface Props {
isActive?: boolean;
isFocussed?: boolean;
BoundaryElement?: string;
tabIndex?: number | null;
tabIndex?: number;
outsideClickEventValidator?: (e?: React.MouseEvent) => boolean;
children:
| React.ReactNode
Expand Down
4 changes: 2 additions & 2 deletions lib/Dropdown/DropdownProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, {
createContext,
useState,
Dispatch,
SetStateAction,
useState,
} from "react";
import cx from "classnames";
import BoundaryClickWatcher from "../BoundaryClickWatcher";
Expand Down Expand Up @@ -101,7 +101,7 @@ function DropdownProvider({
toggleAndSetShowContent(false);
onHide();
}}
tabIndex={null}
tabIndex={-1}
>
{typeof children === "function"
? children({
Expand Down

0 comments on commit 624a785

Please sign in to comment.