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: Value typed by the user is not entered, when suffix used #3029

Closed
VentuzVictorPerez opened this issue Jul 4, 2022 · 2 comments · Fixed by #3612
Closed

InputNumber: Value typed by the user is not entered, when suffix used #3029

VentuzVictorPerez opened this issue Jul 4, 2022 · 2 comments · Fixed by #3612
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@VentuzVictorPerez
Copy link

Describe the bug

The value typed by the user is not entered, when the InputNumber uses a suffix, and the user has selected all the previous value by double clicking on it.

This is a problem because it hinders quick editing such as double clicking on the value or selecting the whole number (where, by the way, the space is also selectable and reproduces the same error we are talking about) especially in forms that involve many InputNumbers.

This is easily reproducible on the Prime React InputNumber page.

Reproducer

https://www.primefaces.org/primereact/inputnumber/

PrimeReact version

6.6.0

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. The InputNumber uses a suffix and has a previously entered value, such as:

image

  1. The value is selected by doubling clicking on it (notice that the empty space between the number and the suffix is also selected).

image

  1. The user types a number (like 3) with the intention of replacing the current value, the following happens:
  • The selection is deleted
  • The number 3 is not entered.

(This is the bug)

image

  1. The user needs to retype the 3 for it to work.

image

Expected behavior

The InputNumber must enter the typed value after a double-click selection.

@VentuzVictorPerez VentuzVictorPerez added Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible Type: Bug Issue contains a defect related to a specific component. labels Jul 4, 2022
@melloware
Copy link
Member

Similar to this other suffix related issue: #2871

@melloware melloware removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 5, 2022
@melloware melloware changed the title InputNumber: The value typed by the user is not entered, when the InputNumber uses a suffix. InputNumber: Value typed by the user is not entered, when suffix used Jul 5, 2022
@VentuzVictorPerez
Copy link
Author

Hello.

Is there any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants