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

issue: incorrect validation flow #9659

Closed
1 task done
ilteoood opened this issue Dec 23, 2022 · 0 comments
Closed
1 task done

issue: incorrect validation flow #9659

ilteoood opened this issue Dec 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ilteoood
Copy link

ilteoood commented Dec 23, 2022

Version Number

7.41.0

Codesandbox/Expo snack

https://codesandbox.io/s/magical-dust-n1nor5?file=/src/App.tsx

Steps to reproduce

Using mode onChange:

  1. Change the input from 0 to any string, like foo
  2. The button will be enabled, until you lose the focus on the input
  3. Change again the value of the input from foo to 1
  4. In this case the button will be immediately enabled, without losing the focus

Using mode all:

  1. Change the input from 0 to any string
  2. The button will always be enabled

Expected behaviour

Using mode onChange:

  1. Change the input from 0 to any string, like foo
  2. The button will be immediately disabled

Using mode all:

  1. Change the input from 0 to any string
  2. The button will be immediately disabled

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bluebill1049 bluebill1049 added status: under investigation aware of this issue and pending for investigation bug Something isn't working and removed status: under investigation aware of this issue and pending for investigation labels Dec 23, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants