Skip to content

UX: Save button disabled after unsuccessful save #14227

Closed

Description

@tylandavis

Describe the Bug

With draft validation enabled, an unsuccessful save results in a disabled save button. This can be problematic if the save fails for a reason unrelated to the form's data (such as network error, third-party data, etc)

Expected behavior:
In the same way that saving is always allowed with unvalidated drafts, the save button should not be disabled when a save doesn't pass validation or fails for another reason.

Link to the code that reproduces this issue

https://github.com/tylandavis/save-button-bug

Reproduction Steps

  1. create a new document in the Examples collection.
  2. Save drafts — there is a validation function that simulates occasional failures, so save until it does not pass validation.
  3. See that save button is disabled, and requires additional input to

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

Binaries:
  Node: 22.16.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 10.10.0
Relevant Packages:
  payload: 3.59.1
  next: 15.4.4
  @payloadcms/db-mongodb: 3.59.1
  @payloadcms/email-nodemailer: 3.59.1
  @payloadcms/graphql: 3.59.1
  @payloadcms/next/utilities: 3.59.1
  @payloadcms/payload-cloud: 3.59.1
  @payloadcms/richtext-lexical: 3.59.1
  @payloadcms/translations: 3.59.1
  @payloadcms/ui/shared: 3.59.1
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Aug 11 21:15:09 PDT 2025; root:xnu-11417.140.69.701.11~1/RELEASE_ARM64_T6041
  Available memory (MB): 24576
  Available CPU cores: 14

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Oct 16, 2025
  2. added and removed
    validate-reproduction
    on Oct 16, 2025
  3. self-assigned this
    on Nov 12, 2025
  4. removed
    status: needs-triage
    on Nov 12, 2025
  5. added a commit that references this issue on Nov 13, 2025
    6fda71a
  6. github-actions commented on Nov 13, 2025

    @github-actions
    Contributor

    🚀 This is included in version v3.64.0

  7. github-actions commented on Nov 21, 2025

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  8. locked as resolved and limited conversation to collaborators on Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions