This commit is contained in:
Belen Curcio 2021-01-06 12:30:41 -03:00
parent f6ca1e3347
commit aa38c869bd

View File

@ -34,7 +34,6 @@ export default function FocusTrap({ children, focusFirst = false }: Props) {
let end = 60 // Try to find match at least n times
let i = 0
const timer = setInterval(() => {
console.log('-----------', i)
if (!match !== i > end) {
match = !!tabbable(root.current).length
if (match) {