Skip to content

Fix selection issue for text containing emoji#416

Merged
tomekzaw merged 1 commit intoExpensify:mainfrom
QichenZhu:fix-emoji-selection
Jul 17, 2024
Merged

Fix selection issue for text containing emoji#416
tomekzaw merged 1 commit intoExpensify:mainfrom
QichenZhu:fix-emoji-selection

Conversation

@QichenZhu
Copy link
Copy Markdown
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
Copy Markdown

mollfpr commented Jul 15, 2024

Friendly bump @tomekzaw

Copy link
Copy Markdown
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
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