You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is interesting, there are two ways to add dynamic form level validators, one is defining it statically static dynamicValidators on the model when building the form and the other is dynamically adding it after the form is initialized with the addValidatorMethod because of the way reactivity is handled in React the static method does not keep track of the comparing field so addFormLevelValidator is the preferred method. Since this method does not affect the underlying class it correctly does not get copied over.
Will need to consider what would happen should we try and copy over all the validators that are added to an instance themselves.
Repro steps
addFormLevelValidator
Expected
A replicated form should keep validators even if they were not part of the class Form definition
The text was updated successfully, but these errors were encountered: