Text inside TextInput that have background make cursor disappear
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
If you have TextInput with children and one of the Text elements has a background the cursor on that element disappears (only the selection marker is visible). Found this while working with react-native-syntax-highlighting that was adding background but figured out how to remove the background that was on a wrapper.
Steps to reproduce
- git clone https://github.com/jcubic/react-native-text-input-cursor.git
- cd react-native-text-input-cursor
- npm install
- npm start
React Native Version
0.72.6
Affected Platforms
Runtime - Android
Output of npx react-native info
System:
OS: Linux 6.6 Fedora Linux 39 (Xfce)
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Memory: 5.33 GB / 15.28 GB
Shell:
version: 5.2.21
path: /bin/bash
Binaries:
Node:
version: 20.10.0
path: ~/.nvm/versions/node/v20.10.0/bin/node
Yarn: Not Found
npm:
version: 10.2.3
path: ~/.nvm/versions/node/v20.10.0/bin/npm
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java:
version: 17.0.9
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/local/rvm/rubies/ruby-2.6.10/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.6
wanted: 0.72.6
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
I'm not sure why npx react-native info doesn't work on my system (Fedora) I do have an SDK and Android Studio.
Stacktrace or Logs
none
Reproducer
https://github.com/jcubic/react-native-text-input-cursor
Screenshots and Videos
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
Reproduziere das Problem mit dem verlinkten react-native-text-input-cursor-Repository, indem du unter Android npm install und npm start ausführst. Verfolge anschließend den React Native Android TextInput-Renderingpfad für Text-Kinder mit Hintergründen. Die Aufgabe ist abgeschlossen, wenn der Cursor in diesem Fall sichtbar bleibt und die gemeldete Reproduktion weiterhin funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, react-native
- Bereich
- mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100