You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportfunctiongetISODateStringFromISODateTimeString(dateString: string,): string{const[date]=dateString.split('T');if(!date){thrownewError('Invalid date string');}returndate;}
it'd be nice if getInputProps handled this case for us for date type
Conform version
latest
Steps to Reproduce the Bug or Issue
create a zod schema with a z.date()
set the field in defaultValue to a full ISO8601 Date string e.g. new Date().toISOString()
see that the date field isn't pre-populated
What browsers are you seeing the problem on?
No response
Screenshots or Videos
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug and the expected behavior
currently I'm having to do this:
where the function looks like:
it'd be nice if getInputProps handled this case for us for date type
Conform version
latest
Steps to Reproduce the Bug or Issue
new Date().toISOString()
date
field isn't pre-populatedWhat browsers are you seeing the problem on?
No response
Screenshots or Videos
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: