Skip to content

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

@TatianaKapos

Description

@TatianaKapos
Contributor

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

Activity

added this to the Backlog milestone on Feb 29, 2024
removed
Needs: Triage 🔍New issue that needs to be reviewed by the issue management team (label applied by bot)
on Feb 29, 2024
added
New ArchitectureBroad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
on Mar 7, 2024
modified the milestones: Backlog, Next on Mar 18, 2024
TatianaKapos

TatianaKapos commented on Apr 2, 2024

@TatianaKapos
ContributorAuthor

This is happening because of an extra call from UpdateState, however that extra call is needed to get the right ordering of events. Not sure what is the solution here but will look at it later

modified the milestones: Next, Backlog on Apr 2, 2024
added
Workstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.
on Oct 3, 2024
modified the milestones: Backlog, Next on Feb 12, 2025
removed their assignment
on May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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

    Participants

    @jonthysell@chrisglein@chiaramooney@TatianaKapos@HariniMalothu17

    Issue actions

      [Fabric] OnChangeText will fire twice when first typing in a textInput · Issue #12780 · microsoft/react-native-windows