Adding delay for dynamic

This commit is contained in:
Belen Curcio 2021-01-06 11:26:17 -03:00
parent bd6bdbeaa8
commit 88aac485cf

View File

@ -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) {