Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

217
Vistas
InputText React-native component when editing from , the cursor Jumps to previous position

When trying to edit text in the middle eg, exampl|e.com if l is cleared in the above example, the cursor moves to exam|pe.com

 <TextInput
        {...this.props}
        ref="input"
        underlineColorAndroid="transparent"
        style={[styles.valueText]}
        defaultValue={this.props.defaultValue}
        value={this.state.text}
        maxLength={this.props.maxLength}
        onFocus={() => this.setFocus()}
        onBlur={() => this.unsetFocus()}
        onChange={(event) => this.setText(event.nativeEvent.text)}
        multiline={true}
    />

setText(value: string | undefined) {
        this.setState({
            text: value,
        });
        if (this.props.onChangeTextValue) {
            return this.props.onChangeTextValue(value);
        }
}

The cursor is moving to the previous position.

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda