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

InputMask doesn't update the value according to state #686

Closed
josmangarsal opened this issue Dec 18, 2018 · 0 comments
Closed

InputMask doesn't update the value according to state #686

josmangarsal opened this issue Dec 18, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@josmangarsal
Copy link
Contributor

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

Plunkr Case (Bug Reports)
https://plnkr.co/edit/S7U2FLkJ2dRhi5HhlBXr?p=preview

Current behavior
Write 66 in field, handleOnChange check that input value is >59 so it write 00 in state, InputMask read the new state but field don't update the content.

Expected behavior
If you write a number higher than 59 InputMask should show 00.
Write 66, handleOnChange check that is higher than 59, write 00 in the state and field should show 00 instead of 66.

Minimal reproduction of the problem with instructions
Write 66 in input, handle check that input value is wrong and write 00 in state. Field should update the value but it doesn't

Please tell us about your environment:

  • React version: 16
  • PrimeReact version: 1.4.0
  • Browser: Chrome 70.0.3538.110
  • Language: ES6/7
@cagataycivici cagataycivici self-assigned this Dec 23, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a defect related to a specific component. label Dec 23, 2018
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