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

[lexical-rich-text][lexical-plain-text] workaround for Korean IME issue on iOS #6819

Merged

Conversation

2wheeh
Copy link
Contributor

@2wheeh 2wheeh commented Nov 12, 2024

Description

related to #5841, #3305.
based on #4814,

  • adds follow-up commits to resolve side effect caused by blocking isCollapsed handling.
  • adds same workaround to plain text plugin.

while we don't have e2e-ios tests, I checked the fix without if (navigator.language === 'ko-KR' && IS_IOS) passed tests on my local.

please include @DeadIntegral as a co-author since it contains his work.

Closes #4814

Test plan

Before

ScreenRecording_11-13-2024.00-51-43_1.mov

After

ScreenRecording_11-13-2024.00-48-57_1.MOV

Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 5:14pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 5:14pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 12, 2024
Copy link

github-actions bot commented Nov 12, 2024

size-limit report 📦

Path Size
lexical - cjs 29.94 KB (0%)
lexical - esm 29.75 KB (0%)
@lexical/rich-text - cjs 38.56 KB (0%)
@lexical/rich-text - esm 31.64 KB (0%)
@lexical/plain-text - cjs 37.18 KB (0%)
@lexical/plain-text - esm 28.95 KB (0%)
@lexical/react - cjs 40.35 KB (0%)
@lexical/react - esm 33.07 KB (0%)

etrepum
etrepum previously approved these changes Nov 12, 2024
Copy link
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

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

This seems pretty low risk given the isolation to just iOS+Korean, I don't have any experience with IMEs so I can't really provide any guidance for what a proper fix would be and I am not even sure I could test it very easily (I couldn't get the korean IME to work in the iOS simulator, it never combines characters for me, and on my phone I don't think it would be very easy for me to have navigator.langauge set to korean)

packages/lexical-rich-text/src/index.ts Outdated Show resolved Hide resolved
Co-authored-by: Bob Ippolito <[email protected]>
@etrepum
Copy link
Collaborator

etrepum commented Nov 13, 2024

The only failing tests is a very flaky one (that is improved in #6759) so I'm going to merge

@etrepum etrepum added this pull request to the merge queue Nov 13, 2024
Merged via the queue into facebook:main with commit f198ba7 Nov 13, 2024
39 of 40 checks passed
@2wheeh 2wheeh deleted the fix/no-side-effect-ios-korean-workaround branch November 13, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants