payload
payload copied to clipboard
First edit does not fire autosave
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
- Create a new 'Bookings' document.
- Change status from 'New Request' to 'Confirmed'
- Go back to collection list.
- Go back to the document you created
- 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