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

Random caps-lock when writing messages #862

Closed
jaaberg opened this issue May 19, 2018 · 4 comments
Closed

Random caps-lock when writing messages #862

jaaberg opened this issue May 19, 2018 · 4 comments
Labels

Comments

@jaaberg
Copy link

jaaberg commented May 19, 2018

Issue Description

Recently, when writing messages, the text input has been acting like crazy, and swtiching between caps and non-caps characters at totally random times when writing.

Edit: Found the source: iOS automatically caps the next character after an ., ? etc. But if the last sign of your message is . or ?, and you jump back and tries to edit already written text, it gets confused in some way.

Steps to Reproduce / Code Snippets

Edit:

  1. Any iOS-device and RNGC (tested on v0.3.0 and v0.4.3)
  2. Use the same example as in the readme.
  3. Write Hi followed by two spaces so that iOS automatically fills inn Hi. and sets caps for the next letter.
  4. Instead of writing more, move the cursor to be between the H and the i and try to write something. Now the caps is confused and vil automatically be on, and if you try to turn it off it just turns on again for the next letter.

I made an expo snack: https://snack.expo.io/SJ4SnU6CG. Remember to switch to the iOS simulator in the lower right corner.

Expected Results

Caps lock randomly turns on and off while writing, but shouldn't.

Additional Information

  • React version: 16.3.0-alpha.1
  • React Native version: 0.54
  • react-native-gifted-chat version: 0.3.0
  • Platform(s) (iOS, Android, or both?): iOS (but maybe both, not sure)

This was my setup, but also tested on RNGC v0.4.3 with same problem. This is not a problem with the regular react-native textinput.

@jaaberg
Copy link
Author

jaaberg commented May 22, 2018

After some digging, it seems like this is a react-native issue with controlled TextInputs. I've created an issue there as well.

facebook/react-native#19389

@dchersey
Copy link

FYI, that issue was possibly fixed with RN 0.56 but the CAPS behavior is still randomly re-occuring for some of my users for the chat app I have built using Gifted Chat. It's less frequent, but perhaps triggered by another sequence of actions. Anybody else still seeing it?

@ranjitpandit
Copy link

I'm also seeing this issue with GiftedChat. I'm on RN 55.4. Any ideas?

@stale
Copy link

stale bot commented Feb 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 12, 2019
@stale stale bot closed this as completed Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants