-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Console warning: prop amPm is required but not set in Hour12Input #24
Comments
I think I see the issue, the react dependency is |
|
Hmmmm, I tested your code and I don't see the warning you're seeing. The only thing I see is that you use |
Thanks for looking at this. I was looking at this issue some more yesterday and I think I figured out what's actually causing it. If I initialize the |
+1, having the exact same issue as emily. I can confirm that it has to do with initializing the |
@yantonsoup This has already been fixed and will land in the next release. |
When using the TimePicker in dev mode, I'm seeing a console warning.
Warning: Failed prop type: The prop amPm is marked as required in Hour12Input, but its value is null. in Hour12Input (created by TimeInput) in TimeInput (created by TimePicker) in div (created by TimePicker)
I only seem to be seeing this warning when I use hooks to manage the state of the TimePicker component: https://gist.github.com/emilyuhde/ded5df5a5b54baeb981403148b9c892a
I don't see the warning when I use a stateful class: https://gist.github.com/emilyuhde/8275a185ca2ca649a30dc3fb6df9be88
The text was updated successfully, but these errors were encountered: