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

Hour12Input doesn't call onChange when input is greater than 12 #344

Open
Aidam1 opened this issue Jul 3, 2024 · 0 comments
Open

Hour12Input doesn't call onChange when input is greater than 12 #344

Aidam1 opened this issue Jul 3, 2024 · 0 comments

Comments

@Aidam1
Copy link

Aidam1 commented Jul 3, 2024

When I enter number 16 into Hour12Input, the input changes to 4 correctly, but onChange is not called. Is there a reason for that? Because after converting 16 to 4, the time is valid and therefore onChange should be called.

I have noticed that onInvalidChange is called instead, but I would still like to use the value to set into state. But onInvalidChange doesn't have any arguments so I can't get the value from TimeInput.

For example with en-US locale:

<TimePicker locale="en-US" />

animation

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

No branches or pull requests

1 participant