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

Input Number: Value pasted by the user is not entered when suffix and decimals are used. #4802

Closed
VentuzVictorPerez opened this issue Aug 21, 2023 · 7 comments · Fixed by #5646 or #5718
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@VentuzVictorPerez
Copy link

VentuzVictorPerez commented Aug 21, 2023

Describe the bug

The value pasted by the user is not entered, when the pasted value uses decimals other than "0" and InputNumber uses suffix.

Reproducer

https://codesandbox.io/s/primereact-demo-forked-2d2l54

PrimeReact version

9.6.1

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to the forked sandbox, there you will see two InputNumber components.
  2. Write "89.98" in the first one.
  3. Copy (ctrl + "c") the recently typed "89.98" value.
  4. Paste (ctrl + "v") this value in the second InputNumber, the old value is erased and the new pasted one is NOT entered. (this is the bug).
    image
  5. Paste again, the value is pasted succesfully.

image

Expected behavior

The value must be pasted the first time this action is attempted.

@VentuzVictorPerez VentuzVictorPerez added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 21, 2023
@VentuzVictorPerez VentuzVictorPerez changed the title Input Number: Value pasted by the user is not entered, when suffix and decimals are used used Input Number: Value pasted by the user is not entered when suffix and decimals are used. Aug 21, 2023
@melloware
Copy link
Member

melloware commented Aug 25, 2023

Is this a duplicate or similar to : #2871 ??

@VentuzVictorPerez
Copy link
Author

Is this a duplicate or similar to : #2871 ??

I would say, it is similar.

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 26, 2023
@kl-nevermore
Copy link
Contributor

@melloware can you assigned me,I had fixed,but I need more test

@melloware
Copy link
Member

Done.

@kl-nevermore
Copy link
Contributor

@melloware can you confirm this? thanks!
#5633 (comment)

@melloware
Copy link
Member

Responded!

@melloware melloware added this to the 10.2.2 milestone Dec 22, 2023
@kl-nevermore
Copy link
Contributor

Thank you very much for your guidance

Fix that together with 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
3 participants