Keyboard on iOS 18 changes from uppercase to lowercase when changing the text input field
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 127k
- Forks
- 25.3k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Description
I encountered an issue where the keyboard changes from uppercase to lowercase when switching focus between two TextInput fields. Specifically, when focusing from Text Input Field A to Text Input Field B, and then back from Text Input Field B to Text Input Field A, the keyboard behavior unexpectedly switches between uppercase and lowercase.
This issue occurs on iOS 18.
Steps to reproduce
- Add two TextInput fields.
- Focus on TextInput 1 and input some text (e.g., "T").
- Focus on TextInput 2 and input some text (e.g., "B").
- Focus back on TextInput 1.
- Focus back on TextInput 2.
- Observe that the keyboard switches from uppercase to lowercase and the first letter of the text remains uppercase.
<View style={styles.mb4}>
<TextInput
accessibilityLabel="Text input field"
style={{
width: 100,
height: 40, // Added height for the input box
borderWidth: 1, // Corrected border style
backgroundColor: 'red', // Corrected background color property
}}
/>
</View>
<View>
<TextInput
accessibilityLabel="Text input field"
style={{
width: 100,
height: 40, // Added height for the input box
borderWidth: 1, // Corrected border style
backgroundColor: 'red', // Corrected background color property
}}
/>
</View>
https://github.com/user-attachments/assets/515136b9-bbd8-45a5-9112-db6cbce6d148
React Native Version
0.76.3
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 15.0
CPU: (11) arm64 Apple M3 Pro
Memory: 244.06 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.15.1
path: ~/.nvm/versions/node/v20.15.1/bin/node
Yarn: Not Found
npm:
version: 10.7.0
path: ~/.nvm/versions/node/v20.15.1/bin/npm
Watchman:
version: 2024.09.23.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK:
API Levels:
- "31"
- "33"
- "34"
Build Tools:
- 34.0.0
- 35.0.0
System Images:
- android-34-ext12 | Google Play ARM 64 v8a
- android-34 | Intel x86_64 Atom
- android-34 | Google APIs ARM 64 v8a
- android-34 | Google APIs Intel x86_64 Atom
- android-35 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.19072.14.2412.12360217
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.12
path: /usr/bin/javac
Ruby:
version: 3.3.4
path: /Users/lehuu/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.3
wanted: 0.76.3
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
N/A
Reproducer
https://snack.expo.dev/pT5crg9nC5joocIBBOZGo
Screenshots and Videos
https://github.com/user-attachments/assets/847035b3-39e6-4da6-9bb8-e110302533ba
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem verlinkten Snack-Reproducer unter iOS 18 mit React Native 0.76.3 und folge der im Issue beschriebenen Fokussequenz mit zwei TextInput-Feldern. Keine Quelldatei oder kein Test wird genannt; bestätige den Übergang von Groß- zu Kleinschreibung und definiere „fertig“ als ein konsistentes Tastaturverhalten beim Wechsel zwischen den Feldern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, react-native
- Bereich
- mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100