payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
28.28k stars 1.75k forks source link

fix(ui): addFieldRow set modified #9324

Closed jacobsfletch closed 6 days ago

jacobsfletch commented 1 week ago

Fixes #9264. When externally updating array or block rows through the addFieldRow or replaceFieldRow methods, nested rich text fields along with any custom components within them are never rendered. This is because unless the form is explicitly set to modified, as the default array and blocks fields currently do, the newly generated form-state will skip the rendering step. Now, the underlying callbacks themselves automatically set the form to modified to trigger rendering.

github-actions[bot] commented 6 days ago

🚀 This is included in version v3.0.1