From 88aac485cf44cb95ecc96c521514043de212d5e7 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 6 Jan 2021 11:26:17 -0300 Subject: [PATCH] Adding delay for dynamic --- lib/focus-trap.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/focus-trap.tsx b/lib/focus-trap.tsx index 980eb23ad..b0c7be31f 100644 --- a/lib/focus-trap.tsx +++ b/lib/focus-trap.tsx @@ -30,7 +30,7 @@ export default function FocusTrap({ children, focusFirst = false }: Props) { const selectFirstFocusableEl = () => { // Try to find focusable elements, if match then focus. let match = null - let end = 10 // Try to find match at least 10 times. + let end = 20 // Try to find match at least 10 times. let i = 0 while (!match !== i > end) {