Repository navigation
fix(web): preserve browser text replacements outside Firefox - #827
Merged
Merged
Conversation
mountiny
approved these changes
Nov 11, 2026
Contributor
53 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Restrict the inserted-text reconstruction fallback to Firefox, where it handles a trailing
<br>being removed during typing. Chrome and Safari can replace text before the cached selection updates; reconstructing their value from that stale selection restores the replaced word (for example,smilereplaced by😊becomessmile😊). Preserve the DOM value in those browsers instead.This ports the source change from Expensify/App#106440. Its CommonJS and ES module bundle edits are generated by this repository's build, so only the source is committed. Native behavior is unchanged.
Related Issues
Expensify/App#106439
Expensify/App#106444
Manual Tests
Already manually tested in E/App
Linked PRs
Expensify/App#106440 — downstream patch containing this fix. A package-version update and patch removal are tracked in Expensify/App#106444 after an upstream release.