I have a page with two components. One of them is a form that shows data fields from a model. The other component has a button that reloads the form with another id of the model associated.
How can I disable the warning message of unsaved changes for that model?
It was very simple!
$form->addClass("ignore_changes");