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 without multiline breaks double tap space bar "." shortcut on iOS #42792

Closed
joshsmith opened this issue Feb 1, 2024 · 7 comments
Closed
Labels
Component: TextInput Related to the TextInput component. Platform: iOS iOS applications. Resolution: Fixed A PR that fixes this issue has been merged.

Comments

@joshsmith
Copy link

Description

When using TextInput without multiline on iOS, the "." Shortcut (double tapping the space bar will insert a period followed by space) functionality is broken.

Steps to reproduce

  1. Install the application with yarn ios
  2. Type into the first TextInput the characters: A new sentence
  3. Type into the second TextInput the characters: A new sentence
  4. Observe that the first TextInput has text that reads: A new sentence
  5. Observe that the second TextInput has text that reads: A new. Sentence

React Native Version

0.73.3

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 13.6.3
  CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Memory: 29.21 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.10.0
    path: ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.yarn/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v20.10.0/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.2
    path: /Users/joshsmith/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "28"
    Build Tools:
      - 28.0.3
    Android NDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9123335
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 1.8.0_74
    path: /usr/bin/javac
  Ruby:
    version: 3.2.1
    path: /Users/joshsmith/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.3
    wanted: 0.73.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

N/A

Reproducer

https://github.com/joshsmith/textinput-no-multiline-breaks-autocorrect

Screenshots and Videos

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-02-01.at.14.12.22.mp4
@github-actions github-actions bot added Component: TextInput Related to the TextInput component. Platform: iOS iOS applications. labels Feb 1, 2024
@mhoran
Copy link
Contributor

mhoran commented Feb 19, 2024

This looks like #27693, for which there is a pending fix in #39385.

@gedu
Copy link

gedu commented Mar 1, 2024

Hey, Yes this issue should be fixed with that PR, if anyone can ping on my PR so it can get more visibility will be great

@react-native-bot
Copy link
Collaborator

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

1 similar comment
@react-native-bot
Copy link
Collaborator

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 29, 2024
@mhoran
Copy link
Contributor

mhoran commented Aug 29, 2024

Still an issue.

@gedu
Copy link

gedu commented Aug 29, 2024

I proposed another solution: #39385 (comment)

@react-native-bot react-native-bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 30, 2024
@NickGerleman
Copy link
Contributor

Likely fixed in new arch with #46970 (thanks @gedu for linking me to this!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: TextInput Related to the TextInput component. Platform: iOS iOS applications. Resolution: Fixed A PR that fixes this issue has been merged.
Projects
None yet
Development

No branches or pull requests

6 participants