Skip to content

refactor: drop disableAutoFocus naming in favor of focusOnHover#879

Open
harrrshall wants to merge 1 commit into
tscircuit:mainfrom
harrrshall:replace-disable-autofocus-with-focus-on-hover
Open

refactor: drop disableAutoFocus naming in favor of focusOnHover#879
harrrshall wants to merge 1 commit into
tscircuit:mainfrom
harrrshall:replace-disable-autofocus-with-focus-on-hover

Conversation

@harrrshall
Copy link
Copy Markdown

Closes #163

The disableAutoFocus prop has already been replaced by focusOnHover throughout the component code (PCBViewer, CanvasElementsRenderer, DimensionOverlay). The only remaining trace of the old disableAutoFocus naming was the DisabledAutoFocus board fixture.

This PR:

  • Renames the DisabledAutoFocus fixture to FocusOnHoverDisabled.
  • Makes it explicitly pass focusOnHover={false}, so the fixture actually exercises the prop instead of relying on the implicit default.

/claim #163

The disableAutoFocus prop has already been superseded by focusOnHover
throughout the component code. This updates the last remaining vestige:
the DisabledAutoFocus board fixture is renamed to FocusOnHoverDisabled
and now explicitly passes focusOnHover={false} so it actually exercises
the prop.

Closes tscircuit#163
@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 8:25am

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