diff --git a/packages/docs/docs/components/dockview.mdx b/packages/docs/docs/components/dockview.mdx index 58b2ac13d..72a48bd56 100644 --- a/packages/docs/docs/components/dockview.mdx +++ b/packages/docs/docs/components/dockview.mdx @@ -32,8 +32,6 @@ import DockviewKeyboard from '@site/sandboxes/keyboard-dockview/src/app'; import { DocRef, Markdown } from '@site/src/components/ui/reference/docRef'; -import { DocRef, Markdown } from '@site/src/components/ui/reference/docRef'; - import { attach as attachDockviewVanilla } from '@site/sandboxes/javascript/vanilla-dockview/src/app'; import { attach as attachSimpleDockview } from '@site/sandboxes/javascript/simple-dockview/src/app'; import { attach as attachTabHeightDockview } from '@site/sandboxes/javascript/tabheight-dockview/src/app'; diff --git a/packages/docs/sandboxes/keyboard-dockview/src/app.tsx b/packages/docs/sandboxes/keyboard-dockview/src/app.tsx index 021491507..e41a8a32b 100644 --- a/packages/docs/sandboxes/keyboard-dockview/src/app.tsx +++ b/packages/docs/sandboxes/keyboard-dockview/src/app.tsx @@ -22,16 +22,6 @@ const components = { }; }, [props.api]); - React.useEffect(() => { - if (!active) { - return; - } - - requestAnimationFrame(() => { - ref.current?.focus(); - }); - }, [active]); - return (
-
-
- { - 'This input box should take focus when the panel is active to demonsrate managed focus' - } - -
-
-
{'isPanelActive: '} {active ? 'true' : 'false'}