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: No possibility to prevent decimal values #7455

Open
mikejav opened this issue Nov 28, 2024 · 0 comments
Open

InputNumber: No possibility to prevent decimal values #7455

mikejav opened this issue Nov 28, 2024 · 0 comments
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@mikejav
Copy link

mikejav commented Nov 28, 2024

Describe the bug

As described on the documentation page - there is a way to use the "Integer Only" and the "Without Grouping" options.

However, it's not working as expected on the demo page (the latest PrimeReact version) - when clicking on the "Edit in StackBlitz".
In the application I'm developing it's also not working,

Also, in the documentation, I don't see another way to handle the integer-only values.

Reproducer

https://stackblitz.com/edit/cdfitb?file=src%2FApp.jsx

System Information

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz 
    Memory: 13.17 GB / 31.93 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\NodeJS 20.10.0\node.EXE
    npm: 10.2.3 - C:\Program Files\NodeJS 20.10.0\npm.CMD   
  Browsers:
    Edge: Chromium (131.0.2903.51)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    primereact: ^10.8.4 => 10.8.4 
    react: ^18.2.0 => 18.2.0

Steps to reproduce the behavior

  1. Go to https://stackblitz.com/edit/cdfitb?file=src%2FApp.jsx
  2. Type some decimal value, e.g 10.5 in the "Integer Only" or the "Without Grouping" field

Expected behavior

The "Integer Only" and the "Without Grouping" options should work correctly, as in the Prime React documentation page

@mikejav mikejav added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 28, 2024
@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 28, 2024
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

No branches or pull requests

2 participants