From 91fecc116269957505a164ca28d31b9a8558f825 Mon Sep 17 00:00:00 2001 From: Jan Nowakowski Date: Fri, 14 Jun 2024 09:03:42 +0200 Subject: [PATCH] Disable initial focus in modals --- src/components/FocusTrap/FocusTrapForModal/index.web.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FocusTrap/FocusTrapForModal/index.web.tsx b/src/components/FocusTrap/FocusTrapForModal/index.web.tsx index 161e3f1b7f84..b06044404ee2 100644 --- a/src/components/FocusTrap/FocusTrapForModal/index.web.tsx +++ b/src/components/FocusTrap/FocusTrapForModal/index.web.tsx @@ -10,7 +10,7 @@ function FocusTrapForModal({children, active}: FocusTrapForModalProps) { focusTrapOptions={{ trapStack: sharedTrapStack, allowOutsideClick: true, - fallbackFocus: document.body, + initialFocus: false, }} > {children}