Skip to content

fix(iOS): removing chars during IME composition#674

Merged
kacperzolkiewski merged 4 commits into
mainfrom
@kacperzolkiewski/fix-removing-ime-chars
Jul 6, 2026
Merged

fix(iOS): removing chars during IME composition#674
kacperzolkiewski merged 4 commits into
mainfrom
@kacperzolkiewski/fix-removing-ime-chars

Conversation

@kacperzolkiewski

Copy link
Copy Markdown
Collaborator

Summary

Fixes: #673

Test Plan

Run reproduction steps from #673
the issue should be resolved.

Screenshots / Videos

Screen.Recording.2026-07-06.at.11.31.23.mov

Compatibility

OS Implemented
iOS
Android
Web

Checklist

  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

Copilot AI review requested due to automatic review settings July 6, 2026 09:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets an iOS IME composition edge case by avoiding custom backspace/paragraph handling during marked-text (IME composition) and by ensuring placeholder visibility stays in sync even when composition prevents the normal modification flow.

Changes:

  • Skip ParagraphAttributesUtils manual backspace intervention while UITextView.markedTextRange is active (IME composition).
  • Refactor placeholder show/hide logic into a dedicated helper and invoke it in the early-return path for marked text.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ios/utils/ParagraphAttributesUtils.mm Adds a marked-text guard to avoid custom backspace handling during IME composition.
ios/EnrichedTextInputView.mm Extracts placeholder visibility logic into handlePlaceholderVisibility and calls it during marked-text early return.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ios/utils/ParagraphAttributesUtils.mm
Comment thread ios/EnrichedTextInputView.mm Outdated
kacperzolkiewski and others added 2 commits July 6, 2026 11:35
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread ios/EnrichedTextInputView.mm Outdated
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
@kacperzolkiewski kacperzolkiewski merged commit c1f5fb6 into main Jul 6, 2026
19 of 21 checks passed
@kacperzolkiewski kacperzolkiewski deleted the @kacperzolkiewski/fix-removing-ime-chars branch July 6, 2026 09:58
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.

[iOS] Backspace on the first character of a paragraph does not delete an unconfirmed IME character (Japanese/CJK composition)

3 participants