payloadcms / payloadcms/payload

Autosave overwrites changes in link modal

Open
#15,719 2 comments 1 reaction 1 assignee View on GitHub

@AlessioGr is already working on this.

Since Jun 19, 2026.

Bug status: verified
Dominant language
TypeScript
Stars
44.8k
Forks
4.2k
Avg merge
2d 21h
Merged PRs (30d)
53

Description

Describe the Bug

When using autosave interval, the autosaving overwrites link type in rich text link modal with old value.

https://github.com/user-attachments/assets/f6bfe107-601e-456e-b2b7-9c8b86e39bba

Link to the code that reproduces this issue

https://github.com/stinesandberg/payload-reproduction-autosave-issue

Reproduction Steps
  1. Write some text in the rich text field
  2. Click the button to add a link to some of the text
  3. When the modal opens, switch the link type to "Internal URL" and wait until the autosave kicks in
  4. The UI reverts back to "Custom URL"
Which area(s) are affected?

Not sure

Environment Info
Binaries:
  Node: 24.13.0
  npm: 11.6.2
  Yarn: 1.22.22
  pnpm: 10.27.0
Relevant Packages:
  payload: 3.77.0
  @payloadcms/payload-cloud: 3.77.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.3.0: Wed Jan 28 20:54:22 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T6030
  Available memory (MB): 36864
  Available CPU cores: 12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.