Skip to content

TextInput onSelectionChange() is fired before onChangeText() in IOS, and fired after onChangeText() in Android when letter typed #28865

@amourlanne

Description

@amourlanne

Description

TextInput onSelectionChange() is fired before onChangeText() in IOS, and fired after onChangeText() in Android when letter is typed

React Native Environment Info

System

  • OS: Windows 10
  • CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  • Memory: 3.35 GB / 15.89 GB

Binaries

  • Node: 12.9.0
  • Yarn: 1.22.4
  • npm: 6.10.2

SDK sdk-35.0.0

Steps To Reproduce

<TextInput
      multiline
      onChangeText={() => console.log('onChangeText')}
      onSelectionChange={() => console.log('onSelectionChange')} />
  1. type letter on input

IOS

onSelectionChange
onChangeText

Android

onChangeText
onSelectionChange

Expected Results

In the same order

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions