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
With Oblique 7, the new module ObMandatoryModule instruments form controls with a validator but without required attribute with a ngAfterContentChecked hook, which generates a constant stream of events generated by updateValueAndValidity().
We have a project which does no longer work after the migration to Oblique 7 because it uses several custom validators and valueChanges handlers on controls. For example, when a location is set in a form, its valueChanges handler sets latitude and longitude in other controls. Now this handler is constantly called thereby overwriting the values. Other controls are affected as well, it is no longer possible to enter any values into the controls. As a workaround, we no longer import the whole ObliqueModule but only the effectively used sub modules, so that ObMandatoryModule is not active.
This behavior could be improved. The updateValueAndValidity() could only be triggered and this.formFieldControl.required could only be set when its value has really changed.
Additionally, in selector: 'input:not([required]), mat-select:not([required),... a closing ] seems to be missing.
The text was updated successfully, but these errors were encountered:
According to angular/components#2574, the goal of the ObMandatoryModule is now covered directly by Angular. If this is really the case, then we'll remove the feature altogether.
With Oblique 7, the new module
ObMandatoryModule
instruments form controls with a validator but withoutrequired
attribute with angAfterContentChecked
hook, which generates a constant stream of events generated byupdateValueAndValidity()
.We have a project which does no longer work after the migration to Oblique 7 because it uses several custom validators and
valueChanges
handlers on controls. For example, when a location is set in a form, itsvalueChanges
handler sets latitude and longitude in other controls. Now this handler is constantly called thereby overwriting the values. Other controls are affected as well, it is no longer possible to enter any values into the controls. As a workaround, we no longer import the wholeObliqueModule
but only the effectively used sub modules, so thatObMandatoryModule
is not active.This behavior could be improved. The
updateValueAndValidity()
could only be triggered andthis.formFieldControl.required
could only be set when its value has really changed.Additionally, in
selector: 'input:not([required]), mat-select:not([required),
... a closing]
seems to be missing.The text was updated successfully, but these errors were encountered: