Record viewer: HTML Rich text editor field is considered dirty during edit and updated even without user input

Feature(s) impacted

Editing a record that has an HTML field (Rich text editor edit widget) in the record viewer.

Observed behavior

HTML fields are updated without any user input.

This probably happens because the HTML is coming from another source (our webapp). I suspect a linter goes over the HTML, modifies it to match whatever is needed by the input field in the record viewer, and thus marks it as dirty.

I have simply tried to change a checkbox value and could indeed see that the HTML field was updated as well:

image

This can cause pretty nasty sync bugs!

This does not happen if the field is read-only.

Expected behavior

Only fields explicitly touched by the human user should be changed.

This is breaking the expectations one has when using the record viewer.

Context

  • Database type: MSSQL
  • Recent changes made on your end if any: None.
  • Browser: Microsoft Edge 146.0.3856.59

And, if you are self-hosting your agent:

  • Agent technology: Node.JS
  • Agent (forest package) name & version (from your .lock file): agent 1.51.0

Hi,

Thanks for reporting this! We identified the issue: when opening a record, the rich text editor was silently reformatting the HTML content, which triggered a change and marked the field as dirty — even without
any user input.

We’re about to merge the fix, it should be available very soon.

Thanks again for the report!

1 Like