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: Single line TextInputs can cause unexpected line feeds by pasting in the input #2303

Open
bear-ei opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@bear-ei
Copy link

bear-ei commented Dec 4, 2024

Environment

react-native -v: 0.75.0
npm ls react-native-macos: 0.75.16
node -v: 23.1.0
npm -v: 10.9.0
yarn --version: 4.5.0
xcodebuild -version: Build version 16B40

Steps to reproduce the bug

1.Copying a long text by shortcut
2.Use shortcut keys to paste long text into TextInput.

Expected Behavior

Long text should be on one line.

Actual Behavior

Long text can be accidentally line-breaked in some cases where copied text trails a lot of space characters.

Reproducible Demo

2024-12-04.21.22.28.mov

The copied TextInput header will actually follow a large number of blank characters when pasted, about a full line. Perhaps this problem is causing accidental line breaks.

Additional context

No response

@bear-ei bear-ei added the bug Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

1 participant