Replies: 1 comment 1 reply
-
I don't know if there is a good way to do this. I think you could maybe listen for keydown events and handle this sort of thing independently from the component. That solution is fairly hackish, but I don't think we would want to add any sort of API for this sort of thing either. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When a user types in 13 for the month date segment it will show 1, then the 3 will erase the 1 (invalid month) and just display 3 for March. We've been asked to show an error when this happens letting the user know that 13 is an invalid month. I can't seem to find an easy way to do this and am wondering if I'm missing an obvious way to accomplish this?
Here's the react-aria component/state management:
https://react-spectrum.adobe.com/react-aria/useDateField.html
https://react-spectrum.adobe.com/react-stately/useDateFieldState.html
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions