Skip to content

Keep compact mobile submit stable - #2664

Merged
ymichael merged 1 commit into
mainfrom
bb/simplify-mobile-tap-interactions-thr_mhbq5hc2w8
Aug 28, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/simplify-mobile-tap-interactions-thr_mhbq5hc2w8

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

On coarse-pointer/mobile devices, pressing submit in an unfocused compact prompt transferred focus to the editor during pointerdown. That expanded and reflowed the compact composer before the click completed, so the first tap could expand the prompt instead of submitting it.

What changed

  • Prevent primary coarse-pointer submit presses from transferring focus before click.
  • Preserve the existing fine-pointer behavior that keeps an already-focused editor focused through submission.
  • Add regression coverage proving an unfocused compact prompt submits on the first touch interaction without focusing the editor.

How you verified

  • The focused regression probe failed before the fix and passes after it.
  • pnpm exec turbo run test typecheck lint --filter=@bb/app --force (444 test files; 3,506 tests passed, four skipped; typecheck passed; lint reported zero errors)
  • pnpm exec prettier --check apps/app/src/components/promptbox/PromptBoxInternal.tsx apps/app/src/components/promptbox/PromptBoxInternal.test.tsx
  • git diff --check origin/main...HEAD

AGENT GENERATED

@ymichael
ymichael merged commit 644ba7b into main Aug 28, 2026
15 checks passed
@ymichael
ymichael deleted the bb/simplify-mobile-tap-interactions-thr_mhbq5hc2w8 branch August 28, 2026 20:42
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