Skip to content

Remove disableAutoFocus in favor of focusOnHover={false}#903

Open
varyavsksm-sudo wants to merge 1 commit into
tscircuit:mainfrom
varyavsksm-sudo:fix/tscircuit__pcb-viewer-163
Open

Remove disableAutoFocus in favor of focusOnHover={false}#903
varyavsksm-sudo wants to merge 1 commit into
tscircuit:mainfrom
varyavsksm-sudo:fix/tscircuit__pcb-viewer-163

Conversation

@varyavsksm-sudo

Copy link
Copy Markdown

The PCBViewer runtime prop has already migrated from disableAutoFocus to focusOnHover on main. The only remaining legacy surface was the DisabledAutoFocus example fixture in src/examples/2025/board.fixture.tsx, which still carried the old naming and did not express the behavior through the new prop.

This PR finishes the migration:

  • Renames the DisabledAutoFocus fixture export to FocusOnHoverDisabled.
  • Makes the disabled-auto-focus behavior explicit by passing focusOnHover={false} to <PCBViewer />, matching the prop API already used by the other fixtures (hover-behavior.fixture.tsx, plated-hole-core.fixture.tsx).

No runtime behavior changes for consumers — focusOnHover already defaults to false; this just removes the last disableAutoFocus-flavored naming and documents the equivalent behavior via the supported prop.

/claim #163

Fixes #163.

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pcb-viewer Ready Ready Preview, Comment Jun 15, 2026 8:57am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove disableAutoFocus in favor of focusOnHover={false}

1 participant