Skip to content

InputNumber: Caret jump in decimal fields on Android #8499

@OlgaYurkova

Description

@OlgaYurkova

Describe the bug

The issue occurs in the InputNumber component with Min-Max Fraction Digits (decimal) on Android Devices. If a user deletes the digits in the integer part (before the separator) and then types two new digits.

The first digit is placed in the integer part, but the second digit is automatically placed in the fractional part (caret jump). The field value does not update correctly upon deletion as on iOS and desktop browsers.

Reproducer

No response

System Information

Product name: Xiaomi Redmi 8A
OS: Android 10
Primereact: 10.9.7
Browser: Google Chrome 144.0.7559.109

Steps to reproduce the behavior

  1. Go to www.primereact.org/inputnumber
  2. Click on input number with Min-Max Fraction Digits in the page.
  3. Delete the numbers located before the separator.
  4. Enter two numbers.

Expected behavior

The field value is updated correctly upon deletion. The second digit is placed in the integer part. Behavior is as expected on desktop browsers and iOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions