You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android, when a TextInput is absolutely positioned and its parent View has a zIndex style property applied, the cursor within the TextInput cannot be moved after initial focus. Tapping on different parts of the TextInput does not change the cursor's position.
importReactfrom'react';import{View,TextInput}from'react-native';exportdefaultfunctionApp(){return(<Viewstyle={{flex: 1,backgroundColor: '#fff'}}><Viewstyle={{// Unable to move cursor if we add zIndex herezIndex: 1,}}><TextInputstyle={{height: 40,backgroundColor: 'pink',width: '100%',position: 'absolute',top: 200,}}/></View></View>);}
Description
On Android, when a TextInput is absolutely positioned and its parent View has a zIndex style property applied, the cursor within the TextInput cannot be moved after initial focus. Tapping on different parts of the TextInput does not change the cursor's position.
Steps to reproduce
yarn android.React Native Version
0.79.2
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
https://github.com/SeekingLight233/RnTextInputIssue
Screenshots and Videos
TextInputIssue.mp4