-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Controlled TextInput has problems with capitalising characters on iOS #19389
Comments
@jaaberg, have you find a way to fix or mitigate this issue by any chance? |
Well, partly @laurent22. What I tried was to use
The problem is that since I'm building a chat, I need to clear the input field on submit. But it occurs that React Native also have a bug on clearing the |
Same issue appears in "react-native": "0.55.2". |
Experiencing the same issue on 0.55. It's really annoying users. |
Looks like the bug was fixed in v.0.56 ff70ecf Tested in my app and it works as intended now. |
This 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? |
@dchersey are you running 0.56? |
Fixed in ff70ecf. |
@pribeh yes I am. |
@dchersey We figured out what's triggering it. It's still happening in RN 0.56 when you have an emoji as the last character of your text input and then move the text cursor back (still with emoji as last character) and enter new letters somewhere in the middle of the string. It only capitalizes the letter |
@mcmar YES! That does cause it for me. I’ve asked my beta testers to try it as well but I expect the answer will be yes. We are also seeing an intermittent issue where the keyboard goes into ALL CAPS in the middle of typing and can’t be reset. I believe it may also be related to going back and editing but haven’t been able to isolate that scenario precisely. Could this be related? |
@mcmar this happens if even if 😍 is not at end lIke 😀 this. Moving the cursor back behind the emoji is the key. |
Anything I can do to help? I know RN and objective C but not the RN codebase
…On Sun, Aug 19, 2018 at 9:52 AM Thomas Cermak ***@***.***> wrote:
@mcmar <https://github.com/mcmar> @dchersey <https://github.com/dchersey>
This sucks. I just reproduced it too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19389 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAw2iZvkaV_mF4EYslX8Xk9MF-PtatOGks5uSW24gaJpZM4UIhKV>
.
|
I stand no chance of solving this. Objective C looks like Cyrillic lettering to me. Thus my reason for using react-native to begin with. |
Facing everywhere in textInput component. I tried adding autoCaptialize = {none} with some of the textInput. It seems to be working. All the i's letter are caps still. But this need to add everywhere. Is there any way to fix without updating / changing react native version? |
I tried this with autocapitalize = none previously and found it still
happened sporadically; that was prior to 0.55 when it got better but was
not completely fixed. I have opened a new issue just for this one (see
above); perhaps you can comment there as this one is closed? I plan to
post a gist to reproduce but am traveling now.
…On Thu, Sep 20, 2018 at 3:27 AM Balasubramanian.M ***@***.***> wrote:
Facing everywhere in textInput component. I tried with *autoCaptialize =
{none}*. It seems to be working. I need to test completely. Is there any
way to fix without updating / changing react native
version.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19389 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAw2iSE_h1PXs1rg3x0FzVDhDXJTy2CAks5uc0NdgaJpZM4UIhKV>
.
|
@hramos I'm still experiencing this in 0.57.0. |
This issue should be reopened. The exact issue described is not resolved running 0.57.0. @dchersey it does seem to happen intermittently even when turning off capitalize. |
Please do file a new issue, specific to 0.57. It's OK to refer back to this issue when doing so. Please understand that tracking comments on closed issues imparts too much additional load on maintainers, and usually opening a new issue will have better luck of getting attention from the necessary people. |
When using a controlled TextInput and you end a message with either
.
or any other character that will make the next character being capitalised, and you go back to edit a word in the message you've already written, the next letters will always be capitalised, because it only looks at the last character in the message.Environment
OS: macOS High Sierra 10.13.4
Node: 8.7.0
Yarn: 0.22.0
npm: 6.0.1
Watchman: 4.9.0
Xcode: Xcode 9.3.1 Build version 9E501
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => 0.54.2
Steps to Reproduce
Hello Bruce.
(edit: Important that you end with.
(dot space) so that auto-capitalised is trigged)Hello
andBruce.
, and try to write something, for instancethere
Expected Behavior
Non-capitalised letters.
Actual Behavior
Capitalise automatically turns on.
The text was updated successfully, but these errors were encountered: