Skip to content

[Bug]: NumberInput resets cursor position to the end of the input after deleting or creating a character in the middle of the input #24027

Closed

Description

@JoshPF

Package

@carbon/react

Browser

Chrome

Package version

1.118.0

React version

18.3.1

Description

When deleting or adding characters in the middle of the input, the cursor should stay where it was, rather than being forced to the end of the input.

Reproduction/example

https://stackblitz.com/edit/github-gmwcd8en?file=src%2FApp.jsx&preset=node=

Steps to reproduce

  1. Enter 12345 into a NumberInput.
  2. Move the cursor in between the 3 and the 4.
  3. Type backspace.
  4. Observe that the cursor has now been forcefully moved to the end of the input, and that typing backspace again will delete the 5, rather than the 2.

Suggested Severity

Medium (Severity 3) = User can complete task, and/or has a workaround within the user experience of a given component.

Project name

DataPower

Code of Conduct

Activity

  1. added theissue type on Nov 11, 2026
  2. moved this to 🕵️‍♀️ Triage in Design Systemon Nov 11, 2026
  3. moved this from 🕵️‍♀️ Triage to 🚦 In Review in Design Systemon Nov 11, 2026
  4. carbon-automation commented on Nov 11, 2026

    @carbon-automation
    Contributor

    Just a quick heads-up: for medium severity issues, it may be a while before the core team can get to this. If you’re up for opening a PR, that’ll likely be the quickest path to a fix, but no worries if not. Thanks!

  5. added
    needs: code contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.
    needs: community contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.
    on Nov 16, 2026
  6. moved this from 🚦 In Review to ✔︎ Done in Design Systemon Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Severity

    Medium

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions