Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputNumber: Empty Field with Suffix Requires Double Entry on Android #7677

Open
cbaum86 opened this issue Feb 4, 2025 · 1 comment
Open
Labels
Device: Mobile Issue or pull request is *only* related to Mobile device

Comments

@cbaum86
Copy link

cbaum86 commented Feb 4, 2025

Describe the bug

When using the InputNumber component with a Suffix, if the user is on an Android device and they delete all the numbers, the first input will not enter the number but clears the input (removes the suffix) and triggers validation (if present). The user is required to enter the first digit again for it to update the input.

Reproducer

PrimeReact Showcase InputNumber with Suffix - https://primereact.org/inputnumber/#prefixsuffix

System Information

Android: 15
Vite: ^6.0.1
React: ^18.3.1
PrimeReact: ^10.8.5

Browsers:
Chrome: 132.0.6834.163
DuckDuckGo: 5.225.0
FireFox: 134.0.2

Steps to reproduce the behavior

  1. Using an Android Device
  2. Navigate to the PrimeReact Showcase Input Number Component
  3. Press in the 'mile' input
  4. Remove all the numbers until only 'mi' is remaining
  5. Try to enter a number
  6. 'mi' is cleared from the input and the number is not entered
  7. Enter the number again
  8. Number is now entered

Expected behavior

Behaviour should be as other variations of the component where the first input of a number in an empty field populates the field.
Behaviour is as expected on desktop browsers and iOS.

@cbaum86 cbaum86 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 4, 2025
@melloware melloware added Device: Mobile Issue or pull request is *only* related to Mobile device and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 4, 2025
@melloware melloware changed the title Input Number: Empty Field with Suffix Requires Double Entry on Android InputNumber: Empty Field with Suffix Requires Double Entry on Android Feb 4, 2025
@melloware
Copy link
Member

Looks similar to this issue: #7648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Device: Mobile Issue or pull request is *only* related to Mobile device
Projects
None yet
Development

No branches or pull requests

2 participants