-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: backspace in Android not deleting first character #5282
Conversation
Hi @kirandash! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks for submitting this - running the CI now. |
Can you provide a quick explanation as to how this fixes the issue/how you arrived at this solution? |
After some debugging on android I found that the deletion was not happening when the number of characters on selected node text content is <= 1 probably because of the current issue on android chrome as pointed out here: #4941 (comment). Hence I decided to do override the default android behaviour only when the text length <=1 and do a manual trigger for the deletion similar to what was implemented in the else block. Not sure if it's the best solution. But for now this is the only solution I could think of. Please do let me know if this can be improved.. |
Fix for issue: #5274