Replies: 1 comment 7 replies
-
You could use an |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any supported way of having a custom component using
useDateField
oruseTimeField
to use a validinput
that blocks native form submission when required? We do not currently offer (nor have plans to offer) our ownForm
component, which I know we could probably use to solve this.I saw #6151 which shows that these are the only two common input form components that don't currently support this behaviour out of the box with the hooks. Are there plans to address / review this further soon?
Right now I'm having to effectively mock this behaviour, using an unfocusable/aria-hidden
input
, with no width/height, which redirects focus onto the firstDateSegment
when it's programmatically focused.Obviously this is less than ideal for the following reasons:
validationDetails.valueMissing
Beta Was this translation helpful? Give feedback.
All reactions