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: use setBaseAndExtent instead of removeAllRanges #357

Merged
merged 2 commits into from
May 28, 2024

Conversation

dominictb
Copy link
Contributor

@dominictb dominictb commented May 27, 2024

Details

Use selection.setBaseAndExtent instead of selection.removeAllRanges(); selection.addRange(range) to avoid the keyboard on Android chrome to hide

Related Issues

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

Manual Tests

Use Android chrome and go to the main page https://127.0.0.1:8082
Tap on a report
Paste any text repeatedly and note the page

Expected: The keyboard should remain open and visible after the paste. Also, the caret position must be maintained.

Linked PRs

Expensify/App#42622

Signed-off-by: dominictb <[email protected]>
@dominictb dominictb marked this pull request as draft May 27, 2024 02:26
Copy link

github-actions bot commented May 27, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@dominictb
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@dominictb
Copy link
Contributor Author

recheck

@dominictb dominictb marked this pull request as ready for review May 27, 2024 03:03
@tomekzaw
Copy link
Collaborator

@dominictb Thanks for the PR! We'll review it soon

Copy link
Collaborator

@Skalakid Skalakid left a comment

Choose a reason for hiding this comment

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

Looks good to me, left one small comment

src/MarkdownTextInput.web.tsx Outdated Show resolved Hide resolved
@dominictb dominictb requested a review from Skalakid May 27, 2024 10:52
@dominictb
Copy link
Contributor Author

@Skalakid could you help approve? Tks!

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