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

TextInput from React Native does not show entered text #22627

Closed
yaskovdev opened this issue Dec 13, 2018 · 7 comments
Closed

TextInput from React Native does not show entered text #22627

yaskovdev opened this issue Dec 13, 2018 · 7 comments
Labels
Bug Component: Text Component: TextInput Related to the TextInput component. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@yaskovdev
Copy link

Environment

  React Native Environment Info:
    System:
      OS: macOS 10.14.1
      CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
      Memory: 751.85 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 9.4.0 - /usr/local/bin/node
      npm: 6.4.0 - /usr/local/bin/npm
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5056338
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.1 => 16.6.1 
      react-native: 0.57.7 => 0.57.7 
    npmGlobalPackages:
      create-react-native-app: 1.0.0
      react-native-cli: 2.0.1
      react-native-config: 0.11.5
      react-native-git-upgrade: 0.2.7

Description

The TextInput component does not show text just typed if it already has some long text and the cursor is in the leftmost position.

Steps to reproduce:

  1. Open the Reproducible Demo application (see below).
  2. Put the cursor to the beginning of the text in the TextInput.
  3. Try typing something (say, "abc").

Expected:
photo5224324199844260611

Actual:
photo5224324199844260609

I.e., "abc" is entered, however, the cursor stays in the initial position and the entered text is not visible. I have to move the cursor to the left myself to see the text. That is not expected behavior: I, as a user, feel that the input is broken and my text just is not entered at all.

Reproducible Demo

The project to reproduce the issue is available here. Just run it in Xcode on an iOS simulator.

Related Stack Overflow Question

https://stackoverflow.com/questions/53732372/textinput-from-react-native-does-not-show-entered-text

@orta
Copy link
Contributor

orta commented Mar 19, 2019

Confirmed this is still happening with the latest release.

@satheeshwaran
Copy link

I am facing the exact issue in certain conditions, any quick fix? I tried multiline={true} but it breaks my alignment. Why is this not working out of the box?

@menesh2
Copy link

menesh2 commented Sep 5, 2019

joins the question
check this snack https://snack.expo.io/@roach_iam/textinput-bug

@mr-moon
Copy link

mr-moon commented Oct 2, 2019

Still happening on 61

@stale
Copy link

stale bot commented Dec 31, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 31, 2019
@stale
Copy link

stale bot commented Jan 7, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jan 7, 2020
@johnnytest470
Copy link

johnnytest470 commented Jan 8, 2020

Can someone reopen this? A "Feature" or "Easter Egg" of react native apps?

@facebook facebook locked as resolved and limited conversation to collaborators Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: Text Component: TextInput Related to the TextInput component. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

8 participants