Skip to content

fix: prevent hidden textarea focus from scrolling page#72

Open
lalalasyun wants to merge 1 commit into
vercel-labs:mainfrom
lalalasyun:fix/prevent-hidden-textarea-scroll
Open

fix: prevent hidden textarea focus from scrolling page#72
lalalasyun wants to merge 1 commit into
vercel-labs:mainfrom
lalalasyun:fix/prevent-hidden-textarea-scroll

Conversation

@lalalasyun
Copy link
Copy Markdown

Summary

  • keep the hidden textarea focus target fixed within the viewport instead of positioning it far off-screen
  • use focus({ preventScroll: true }) for the paste shortcut refocus path

This prevents browsers from scrolling the page toward the hidden input while typing or pasting.

Verification

  • corepack pnpm install --frozen-lockfile
  • corepack pnpm --filter @wterm/core build
  • corepack pnpm --filter @wterm/dom type-check
  • corepack pnpm --filter @wterm/dom test

DOM package tests: 68 passed.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

@lalalasyun is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant