Unverified Commit 0c9355d3 authored by Rob Pruzan's avatar Rob Pruzan Committed by GitHub

fix: revert focus trap dependency change (#81571)

parent 0cf373a5
......@@ -163,7 +163,7 @@ function DevToolsPopover({
)
// Features to make the menu accessible
useFocusTrap(menuRef, triggerRef, menuMounted)
useFocusTrap(menuRef, triggerRef, isMenuOpen)
useClickOutside(menuRef, triggerRef, menuMounted, closeMenu)
useShortcuts(hideShortcut ? { [hideShortcut]: hideDevTools } : {}, triggerRef)
......
......@@ -33,7 +33,7 @@ export function DevToolsInfo({
exitDelay: MENU_DURATION_MS,
})
useFocusTrap(ref, triggerRef, mounted, () => {
useFocusTrap(ref, triggerRef, isOpen, () => {
// Bring focus to close button, so the user can easily close the overlay
closeButtonRef.current?.focus()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment