Skip to content

fix: remove legacy DisabledAutoFocus fixture in favor of focusOnHover prop#878

Open
ZYM1160501013 wants to merge 1 commit into
tscircuit:mainfrom
ZYM1160501013:main
Open

fix: remove legacy DisabledAutoFocus fixture in favor of focusOnHover prop#878
ZYM1160501013 wants to merge 1 commit into
tscircuit:mainfrom
ZYM1160501013:main

Conversation

@ZYM1160501013
Copy link
Copy Markdown

/claim #163

Closes #163

Summary

  • Removed the legacy DisabledAutoFocus fixture from board.fixture.tsx
  • This fixture was the last remaining reference to the deprecated disableAutoFocus naming
  • It was functionally identical to BasicRectangleBoard since focusOnHover defaults to false
  • The hover-behavior.fixture.tsx already provides proper focusOnHover usage examples

Changes

  • src/examples/2025/board.fixture.tsx: Removed DisabledAutoFocus fixture (15 lines)

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

… prop

The old `disableAutoFocus` prop has been replaced by `focusOnHover={false}`
(default). This removes the last remaining reference to the old naming
convention — the `DisabledAutoFocus` fixture, which was functionally
identical to `BasicRectangleBoard` since `focusOnHover` defaults to `false`.

The `hover-behavior.fixture.tsx` already provides proper examples of
`focusOnHover={false}` and `focusOnHover={true}` usage.

Closes tscircuit#163
/claim tscircuit#163

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
pcb-viewer Ready Ready Preview, Comment May 22, 2026 4:34am

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}

2 participants