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

Retyping after TextInput.clear() brings back characters before the clear. #15450

Closed
toytonic opened this issue Aug 10, 2017 · 2 comments
Closed
Assignees
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@toytonic
Copy link

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  • Target Platform: Android
  • Development Operating System: macOSX
  • Build tools: vscode, react-native-cli, android-studio, sdk: 23.0.1
  • Issue is specific to some android versions/devices: We could reproduce it with 'SM-G903F - 6.0.1'

Steps to Reproduce

  1. Implement a textinput with a clear function that calls 'textinputRef.clear()' on an input ref
  2. type something in the text field
  3. trigger that clear
  4. start typing in the exact same textinput

Expected Behavior

  1. ...
  2. Textinput shows characters I typed
  3. Texinput shows no characters
  4. Textinput shows only the caracters typed after the clear

Actual Behavior

  1. ...
  2. Textinput shows characters I typed
  3. TexInput shows no characters
  4. Textinput shows characters before the clear AND the characters typed after the clear

Reproducible Demo

https://snack.expo.io/HkCfLCYP-

The issue happens both with controlled and uncontrolled inputs.

@shergin shergin self-assigned this Aug 15, 2017
@amirrezamahyari
Copy link

amirrezamahyari commented Oct 8, 2017

same problem , anybody has some idea ?

@stale
Copy link

stale bot commented Dec 7, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. 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 7, 2017
@stale stale bot closed this as completed Dec 14, 2017
@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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

3 participants