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 1527497 commit 2222796Copy full SHA for 2222796
src/components/molecules/modal.tsx
@@ -58,7 +58,7 @@ export const Modal = ({
58
: buttons.length >= 1
59
? buttons.length - 1
60
: undefined;
61
- if (!focusTabIndex || focusTabIndex < 0) return;
+ if (focusTabIndex === undefined || focusTabIndex < 0) return;
62
(buttons[focusTabIndex] as HTMLElement).focus();
63
64
const focusableElements = modalRef.current.querySelectorAll(
0 commit comments