Skip to content

Preserve connection capsules during IME composition - #94

Open
tktm8 wants to merge 1 commit into
cloudflare:mainfrom
tktm8:fix/ios-ime-connection-capsules
Open

Preserve connection capsules during IME composition#94
tktm8 wants to merge 1 commit into
cloudflare:mainfrom
tktm8:fix/ios-ime-connection-capsules

Conversation

@tktm8

@tktm8 tktm8 commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • keep provisional IME text rendered without running connection-capsule overlap bookkeeping
  • apply the committed edit once at composition end against the pre-composition value
  • prevent composer commands and submission while the key event is part of active composition

Root cause

Mobile Safari can emit controlled-textarea changes during IME composition with a stale selection range. Processing each provisional value as a normal edit can make the edit appear to overlap a structured Connection capsule, removing it from the composer.

User impact

Japanese and other IME users can confirm text conversion in iOS Safari without losing an attached Connection capsule.

Validation

  • pnpm --filter @gadgets/workshop-frontend build

Closes #92.
Related to #81.
Supersedes #93 after renaming the fork branch.

@tktm8
tktm8 marked this pull request as ready for review August 8, 2026 14:13
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.

Connection capsule disappears when confirming IME text on iOS Safari

1 participant