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
{{ message }}
Repository navigation
[Bug]: forms accepts any string for date and datetime-local fields #682
Declare a forms flow field with type: date (or datetime-local) and submit any string, e.g. not-a-date.
Expected: the submission is refused with a field error, like type: email and type: number are.
Actual: admission() in packages/forms/src/forms.ts validates email and number formats but has no branch for date / datetime-local, so any string (within length limits) is accepted and passed to onSubmit.
Relevant output
Found during triage by reading the code; not yet exercised by a test. Split out of #528, which covers the larger conditional/date-range feature.
Activity