I am trying to setValues for a form, where the fields are text boxes + a richselect component. The richselect component (“role”) contains objects as data.
After calling form.setValues({…}), form.isDirty() returns true, but printing dirty values shows only the “role” value, while the text box values show up as clean values.
Calling form.setDirty() does not solve it either.
Please see Code Snippet
Is there a workaround for this? I want the form to be clean after I setValues, so that the next check for form.isDirty() returns false.