Skip to content
Source
Sign inSign up
TanStack/devtools

fix(devtools): preserve the resize separator tab stop #581

Openpcbeingused33(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/581/headopened View on GitHub

Showing 5 changed files with 6 additions and 28 deletions (loading 2).

x
0 of 5 viewed, 5 left
5 additions and 0 deletions.changeset/quiet-panels-focus.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/devtools': patch
+---
+​
+Keep the resize separator keyboard-focusable when Devtools is open and remove the closed panel from the tab order.
1 addition and 0 deletionspackages/devtools/src/components/main-panel.tsxModified
View file
@@ -71,6 +71,7 @@
id={TANSTACK_DEVTOOLS}
data-testid="tanstack-devtools-panel"
data-open={String(props.isOpen())}
+ inert={!props.isOpen() || undefined}
data-subheader-collapsed={String(props.isCollapsed())}
data-tsd-surface
style={{
0 additions and 28 deletionspackages/devtools/src/hooks/use-disable-tabbing.tsDeleted
@@ -1,28 +0,0 @@
-import { createEffect } from 'solid-js'
-import { TANSTACK_DEVTOOLS } from '../utils/storage'
-​
-const recursivelyChangeTabIndex = (
- node: Element | HTMLElement,
- remove = true,
-) => {
- if (remove) {
- node.setAttribute('tabIndex', '-1')
- } else {