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

NumberInput never be touched #7980

Closed
bingluen opened this issue Jul 18, 2022 · 1 comment · Fixed by #7992
Closed

NumberInput never be touched #7980

bingluen opened this issue Jul 18, 2022 · 1 comment · Fixed by #7992
Assignees
Labels

Comments

@bingluen
Copy link
Contributor

What you were expecting:
fieldState.isTouched of NumberInput should be set touched if field has received a focus and blur event.

What happened instead:
fieldState.isTouched always keep false, event touch it.

Steps to reproduce:

just touch NumberInput field and observe its state

Related code:

https://codesandbox.io/embed/cranky-yonath-zh60ob?fontsize=14&hidenavigation=1&module=%2Fsrc%2Fposts.js&theme=dark&view=editor

Other information:

Environment

  • React-admin version: 4.x
  • React version: 17
  • Browser: Edge 102.0.1245.33
@antoinefricker
Copy link
Contributor

antoinefricker commented Jul 20, 2022

Reproduced, thanks for submitting this issue.
Duplicate of #7919 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants