Files
payloadcms/packages
Philipp Schneider a2c31fa44a fix(ui): prevent form validation after draft submit error (#12918)
Follow-up to #12893.

### What?

Removes cases where submitting a document as a draft in a collection
with versioning enabled would cause publishing validation errors to be
displayed on further document form changes. An example case is when
saving the draft failed due to a `beforeChange` hook throwing an
`APIError`.

### How

The behavior change is that the form state is marked as un-submitted
post a submit failure as a draft. The form not being considered as
submitted results in `packages/ui/src/views/Edit/index.tsx` to use
`skipValidation: true`.

---------

Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com>
2025-09-15 17:10:47 -04:00
..
2025-09-10 14:40:53 -04:00
2025-09-10 14:40:53 -04:00