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

Single line TextInput fixes (prevent newLines, support horizontal overflow) #1284

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

christophpurrer
Copy link

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

This diff fixes 2 bugs with TextInput:

  1. The default macOS behavior for single line text inputs is that they scroll horizontally when they overflow. react-native-macOS was making it paginate instead
  2. Single line text input allowed pressing Ctrl+Enter to insert a new line

Changelog

[macOS] [Fixe] - Single line TextInput fixes (prevent newLines, support horizontal overflow)

Test Plan

Before

CTRL + W > adds new line
Text paginates

before.mov

After

No new lines
Text overflows

after.mov

@christophpurrer christophpurrer requested a review from a team as a code owner July 25, 2022 16:34
This diff fixes 2 bugs with TextInput:
1. The default macOS behavior for single line text inputs is that they scroll horizontally when they overflow. react-native-macOS was making it paginate instead
2. Single line text input allowed pressing Ctrl+Enter to insert a new line
@christophpurrer christophpurrer force-pushed the singleLineTextInputFixes branch from 1eedb23 to 0031297 Compare July 26, 2022 20:35
@chiuam chiuam merged commit bc183b6 into microsoft:main Jul 27, 2022
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Feb 13, 2023
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants