Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): addFieldRow set modified #9324

Merged
merged 4 commits into from
Nov 19, 2024
Merged

fix(ui): addFieldRow set modified #9324

merged 4 commits into from
Nov 19, 2024

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Nov 19, 2024

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.

@jacobsfletch jacobsfletch marked this pull request as ready for review November 19, 2024 04:47
@jacobsfletch jacobsfletch changed the title fix: addFieldRow set modified fix(ui): addFieldRow set modified Nov 19, 2024
@jacobsfletch jacobsfletch merged commit 0f3f6e7 into main Nov 19, 2024
55 checks passed
@jacobsfletch jacobsfletch deleted the fix/add-field-row branch November 19, 2024 13:52
Copy link

🚀 This is included in version v3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI in programmatically-added rows do not render until interacted with
1 participant