payload icon indicating copy to clipboard operation
payload copied to clipboard

First edit does not fire autosave

Open PP-Tom opened this issue 1 year ago • 0 comments

Describe the Bug

When editing a document, the first edit you make does not fire an autosave, this is especially problematic for checkboxes and select fields.

Link to the code that reproduces this issue

https://github.com/PP-Tom/payload-first-modify-bug

Reproduction Steps

  1. Create a new 'Bookings' document.
  2. Change status from 'New Request' to 'Confirmed'
  3. Go back to collection list.
  4. Go back to the document you created
  5. It's still on 'New Request'

Check for autosave, it doesn't happen until you make a second change.

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

area: ui

Environment Info

Payload: 3.10.0
Node: 22
Next: 15.1.0

PP-Tom avatar Dec 20 '24 21:12 PP-Tom