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 cannot set value when format property is false #1582

Closed
fkirisci opened this issue Sep 15, 2020 · 0 comments
Closed

InputNumber cannot set value when format property is false #1582

fkirisci opened this issue Sep 15, 2020 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@fkirisci
Copy link
Contributor

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case
https://codesandbox.io/s/brave-hopper-qm2y8
InputNumber throws type error when changing value to new one with format property is false.

Current behavior
Changing input value to new value, throws type error.

Expected behavior
When changing value to new one, it should not throws error.

Minimal reproduction of the problem with instructions
In example at sandbox change value to different from default value, it will throws type error with "newValue.slice is not a function".

  • React version: 16.13.1

  • PrimeReact version: 5.0.0-rc.2

  • Browser: all

  • Language: ES6/7

@mertsincan mertsincan self-assigned this Sep 20, 2020
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Sep 20, 2020
@mertsincan mertsincan added this to the 5.0.0.Final milestone Sep 20, 2020
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