chore: docs

This commit is contained in:
mathuo 2023-10-02 19:42:46 +01:00
parent 46bceea217
commit 82b83e7ed3
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
2 changed files with 0 additions and 21 deletions

View File

@ -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';

View File

@ -22,16 +22,6 @@ const components = {
};
}, [props.api]);
React.useEffect(() => {
if (!active) {
return;
}
requestAnimationFrame(() => {
ref.current?.focus();
});
}, [active]);
return (
<div
className="keyboard-example-panel"
@ -52,15 +42,6 @@ const components = {
{' to nativgate between tabs.'}
</div>
<div style={{ padding: '10px 0px' }}>
<div>
{
'This input box should take focus when the panel is active to demonsrate managed focus'
}
<input ref={ref} type="text" />
</div>
</div>
<div>
<span>{'isPanelActive: '}</span>
<span>{active ? 'true' : 'false'}</span>