Skip to content

Conversation

@duncanmcclean
Copy link
Member

This PR fixes an issue where the Bard Fieldtype would emit an update even if the content is exactly the same as the current value.

This causes problems when localizing entries. When a localization is created, we make a request to the server to get the form's values. This subsequently leads to Bard's value prop being updated.

However, because the object reference has changed, the check in the json watcher considers the value to be different, which ultimately leads to the localizedFields array being incorrectly updated.

This PR fixes it by stringifying the two objects so we can compare contents, and not references.

@jasonvarga jasonvarga merged commit 08a2d77 into 5.x Jan 22, 2026
26 checks passed
@jasonvarga jasonvarga deleted the bard-json branch January 22, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants