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

Newline added in multiline, blurOnSubmit TextInput on press 'Enter' AFTER pasting #15205

Closed
Palisand opened this issue Jul 26, 2017 · 6 comments
Assignees
Labels
Bug Component: TextInput Related to the TextInput component. Good first issue Interested in collaborating? Take a stab at fixing one of these issues. Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@Palisand
Copy link

Palisand commented Jul 26, 2017

Is this a bug report?

Yes, yes it is.

Have you read the Bugs section of the How to Contribute guide?

Yes

Environment

  1. react-native -v: react-native-cli: 2.0.1 react-native: 0.46.1

  2. node -v: v7.8.0

  3. npm -v: 4.6.1

  • Target Platform: iOS

  • Development Operating System: macOS X El Capitan (10.11.6)

  • Build tools: Expo

Steps to Reproduce

  1. Paste some text on a TextInput with multiline and blurOnSubmit set
  2. Press Enter/Return on keyboard
  3. Notice (and scratch head) the newline that appears

Expected Behavior

A newline should not be inserted on Enter/Return press when blurOnSubmit is true, even
after pasting.

Actual Behavior

A newline was inserted.

Reproducible Demo

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

@Palisand
Copy link
Author

In addition, pressing Return also enables CAPS (just like #15155). The key difference here is the bug occurs after pasting text.

@shergin shergin self-assigned this Aug 15, 2017
@shergin shergin added Platform: iOS iOS applications. Good first issue Interested in collaborating? Take a stab at fixing one of these issues. labels Oct 9, 2017
@SuhairZain
Copy link
Contributor

Hi @shergin, are there any updates on this issue?

@meggamind
Copy link

@SuhairZain, @shergin : Can I pick this issue ?

@SuhairZain
Copy link
Contributor

@meggamind I believe this has been fixed in the latest release (0.53.0). I had this issue on a Redmi 3S Prime running MIUI 8 and Android 6 with RN 0.47.1. For me it works when upgrading to the latest version.

Please check if the latest release fixes it for you or not.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Component: TextInput Related to the TextInput component. labels Mar 16, 2018
@FranciscoMSM
Copy link

I checked both in Android and iOS and it seems to be fixed in 0.55.4

@ferrannp
Copy link
Contributor

Hello there 👋 this issue has been reported for an old version of React Native. Ideally we'd like everyone to be using 0.59 (see the awesome changes it brought) but we know updating can be a pain. We are going to close this issue because it's from a version before 0.57, which is really old.

But please, if it's actually still an issue with 0.59 please comment below and we can reopen it 😊

@facebook facebook locked as resolved and limited conversation to collaborators Mar 20, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: TextInput Related to the TextInput component. Good first issue Interested in collaborating? Take a stab at fixing one of these issues. Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants