[iOS] Adding outline to `TextInput` causes it to lose focus
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
On iOS, if TextInput with overflow: hidden is rendered with an outline while focused, it immediately loses focus. This also means that if outline is used to indicate focus state (like on web), the TextInput becomes impossible to interact with.
Steps to reproduce
- Run the snack
- Switch on "Enable outline"
- Press on the text input
- Notice how the keyboard closes immediately, and the text input loses focus
React Native Version
0.80.1
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
N/A — reproduces via Expo Snack/Expo Go
Stacktrace or Logs
N/A
MANDATORY Reproducer
https://snack.expo.dev/@simplecreations/ios---adding-outline-to-textinput-causes-it-to-lose-focus
Screenshots and Videos
https://github.com/user-attachments/assets/de1bdfc6-c0f1-4b71-af15-fce5e45b58c0
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 obligatorischen Expo Snack-Reproducer und bestätige das Verhalten auf iOS mit React Native 0.80.1. Verfolge, wie das fokussierte TextInput gerendert wird, wenn overflow ausgeblendet und outline aktiviert ist. Als abgeschlossen gilt die Aufgabe, wenn die Tastatur geöffnet bleibt und das TextInput in dieser Konfiguration den Fokus behält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react-native
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100