Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes the Invalid Date error on required or inline date fields when attempting to pick a date.

It seems to have something to do with the fact that no value was previously being passed to the DatePicker/Calendar components.

This PR attempts to fix the issue by simply adding a date when mounting the date fieldtype, just like the "Add Date" button would do on a non-required date field.

Fixes #12778

@duncanmcclean duncanmcclean linked an issue Oct 17, 2025 that may be closed by this pull request
@jasonvarga
Copy link
Member

I think this will result in the page being immediately marked as dirty - since the value changes.

@duncanmcclean duncanmcclean marked this pull request as draft October 24, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.x] Date field issues

3 participants