Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selection issue for text containing emoji #416

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

QichenZhu
Copy link
Contributor

Details

Emoji characters are automatically assigned an AppleColorEmoji NSFont and the original font is moved to NSOriginalFont.
We need to remove these attributes before comparison.

Related Issues

$ Expensify/App#44495
PROPOSAL: Expensify/App#44495 (comment)

Manual Tests

  1. Type text with an emoji.
  2. Long press to select a word.

Expected Result:
Able to select a word.

Screen recordings

Before:

before.mp4

After:

after.mp4

Linked PRs

@mollfpr
Copy link

mollfpr commented Jul 15, 2024

Friendly bump @tomekzaw

Copy link
Collaborator

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

I confirm this PR fixes the selection problem on iOS Fabric.

@tomekzaw tomekzaw merged commit 8661075 into Expensify:main Jul 17, 2024
5 checks passed
hannojg pushed a commit to margelo/react-native-live-markdown that referenced this pull request Jul 17, 2024
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.

3 participants