mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 13:11:23 +00:00
Adding delay for dynamic
This commit is contained in:
parent
bd6bdbeaa8
commit
88aac485cf
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user