proton-native icon indicating copy to clipboard operation
proton-native copied to clipboard

TextInput Cursor keep reset to starting position when setState,

Open Taymindis opened this issue 4 years ago • 0 comments

Describe the bug TextInput Cursor keep reseting to first position when setState on event of changeText,

To Reproduce

<View style={{ flex: 1, flexDirection: 'column' }}>
            <TextInput
              onBlur={() => {
                console.log('blur');
              }}
              onChangeText={text => {
                this.setState({ text });
              }}
              value={this.state.text}
              style={{ flex: 1 }}
              multiline
            />
          </View>

Expected behavior It should be back to the position where it lay

Taymindis avatar May 02 '20 01:05 Taymindis