Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Fix autocomplete behavior for Android chrome. #1013

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

Conversation

AndrewSouthpaw
Copy link

This is essentially the same as #175, which was closed due to inactivity. A couple minor adjustments were made to the original PR in order to have it fit with the latest version of Draft.

This commit fixes some issues with autocomplete behavior on Android Chrome.

Problem 1: Keyboard loses focus

Refers to #907 and repro steps are listed there. This PR addresses the problem listed there, albeit in a different way.

Problem 2: Replacing a word with autocomplete is broken

Steps to repro:

  1. Type a few words
  2. Place cursor inside a word
  3. Choose a different autocomplete word
  4. The resulting composition is mangled.

Based off facebookarchive#175, this commit
fixes some issues with autocomplete behavior on Android Chrome.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact cla@fb.com if you have any questions.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@flarnie flarnie self-assigned this Feb 27, 2017
.gitignore Outdated
@@ -9,3 +9,4 @@
/website/src/draft-js/lib/
/website/src/draft-js/docs/
npm-debug.log
.idea/
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it typical to add this to your global .gitignore?

Copy link
Author

Choose a reason for hiding this comment

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

Oops, sorry, that's an artifact of IntelliJ editors, I added it so config files wouldn't be thrown in with the changes. I'll remove it...

@AndrewSouthpaw
Copy link
Author

@flarnie Ping?

@mathieumg
Copy link

For anyone wondering, this doesn't seem to fix #1224 (I thought it might) Tested with this PR merged in https://www.npmjs.com/package/@mathieumg/draft-js

@flarnie
Copy link
Contributor

flarnie commented Jun 28, 2017

Thanks for reopening this @AndrewSouthpaw and for verifying that it doesn't seem to fix #1224 @mathieumg. I'm working on setting up syncing between FB and Github today, and once that is done we will be unblocked to merge some PRs and test them internally at Facebook. Thanks to everyone for your patience.

@mathieumg
Copy link

Thanks for the update @flarnie , looking forward to that sync! =) If you look in #1224, I also found out how to fix it properly since.

@spirift
Copy link

spirift commented Apr 20, 2018

How comes this PR never got merged? Seems like it would be useful to have.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants