Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
0c9355d3
Unverified
Commit
0c9355d3
authored
Jul 12, 2025
by
Rob Pruzan
Committed by
GitHub
Jul 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: revert focus trap dependency change (#81571)
parent
0cf373a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dev-tools-indicator.tsx
...onents/errors/dev-tools-indicator/dev-tools-indicator.tsx
+1
-1
dev-tools-info.tsx
...ors/dev-tools-indicator/dev-tools-info/dev-tools-info.tsx
+1
-1
No files found.
packages/next/src/next-devtools/dev-overlay/components/errors/dev-tools-indicator/dev-tools-indicator.tsx
View file @
0c9355d3
...
@@ -163,7 +163,7 @@ function DevToolsPopover({
...
@@ -163,7 +163,7 @@ function DevToolsPopover({
)
)
// Features to make the menu accessible
// Features to make the menu accessible
useFocusTrap
(
menuRef
,
triggerRef
,
menuMounted
)
useFocusTrap
(
menuRef
,
triggerRef
,
isMenuOpen
)
useClickOutside
(
menuRef
,
triggerRef
,
menuMounted
,
closeMenu
)
useClickOutside
(
menuRef
,
triggerRef
,
menuMounted
,
closeMenu
)
useShortcuts
(
hideShortcut
?
{
[
hideShortcut
]:
hideDevTools
}
:
{},
triggerRef
)
useShortcuts
(
hideShortcut
?
{
[
hideShortcut
]:
hideDevTools
}
:
{},
triggerRef
)
...
...
packages/next/src/next-devtools/dev-overlay/components/errors/dev-tools-indicator/dev-tools-info/dev-tools-info.tsx
View file @
0c9355d3
...
@@ -33,7 +33,7 @@ export function DevToolsInfo({
...
@@ -33,7 +33,7 @@ export function DevToolsInfo({
exitDelay
:
MENU_DURATION_MS
,
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
// Bring focus to close button, so the user can easily close the overlay
closeButtonRef
.
current
?.
focus
()
closeButtonRef
.
current
?.
focus
()
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment