Skip to content

[Fabric] OnChangeText will fire twice when first typing in a textInput #12780

@TatianaKapos

Description

@TatianaKapos

Problem Description

onChangeText should only fire once when typing a singe character. But when first typing on a TextInput, onChangeText will fire twice. See below for log of events for type "a" into a TextInput.

Paper
image

Fabric
image

Steps To Reproduce

  1. Type a single character into a textinput
  2. onChangeText will fire twice

Expected Results

OnChangeText will only fire once

CLI version

npx react-native -v

Environment

npx react-native info

Target Platform Version

None

Target Device(s)

No response

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

Labels

Area: FabricSupport Facebook FabricArea: TextInputNew ArchitectureBroad category for issues that apply to the RN "new" architecture of Turbo Modules + FabricWorkstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.bug

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions