[iOS] Adding outline to `TextInput` causes it to lose focus
Nessuno ha ancora preso questa issue.
- Lingua principale
- C++
- Stelle
- 127k
- Fork
- 25.3k
- Merge medio
- 1g 23h
- PR unite (30g)
- 4
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il riproduttore Expo Snack obbligatorio e conferma il comportamento su iOS con React Native 0.80.1. Traccia il rendering del TextInput con il focus quando overflow è nascosto e outline è abilitato. Il lavoro è completato quando la tastiera rimane aperta e il TextInput mantiene il focus in questa configurazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react-native
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100