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(iOS): Setting cursor on Text doesn't error #44563

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Saadnajmi
Copy link
Contributor

Summary:

Related: #44559

On the old architecture, RCTTextView didn't have the cursor property, so if you tried to set cursor on Text, you would get a redbox. Implementing cursor for Text wasn't super simple (there's some stuff that's in RCTView that's not in RCTTextView), so let's just add a property so it at least doesn't redbox.

Changelog:

[IOS] [FIXED] - Setting cursor on Text doesn't error

Test Plan:

Updated the cursor example test page, and verified that:

  • No red box pops up
  • Setting cursor directly on Text doesn't actually do anything.
Screen.Recording.2024-05-13.at.3.35.14.PM.mov

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels May 13, 2024
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label May 13, 2024
@alantoa
Copy link

alantoa commented May 14, 2024

Hey @Saadnajmi, I just tested this PR and can confirm that it has been fixed for me. Thank you!

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. p: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants