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
I used this module in a uib-modal (https://angular-ui.github.io/bootstrap/). The data modal that is passed to the modal is reloaded prior to being opened again.
I found that adding the same checks you had in onInputValueChanges() to setPristine() fixes it.
Changing from:
// Notifying the form.
formCtrl.$$notifyModelModifiedStateChanged(modelCtrl);
to:
// Notifying the form.
if (formCtrl && 'function' === typeof formCtrl.$$notifyModelModifiedStateChanged) {
formCtrl.$$notifyModelModifiedStateChanged(modelCtrl);
}
The text was updated successfully, but these errors were encountered:
I used this module in a uib-modal (https://angular-ui.github.io/bootstrap/). The data modal that is passed to the modal is reloaded prior to being opened again.
I found that adding the same checks you had in onInputValueChanges() to setPristine() fixes it.
Changing from:
// Notifying the form.
formCtrl.$$notifyModelModifiedStateChanged(modelCtrl);
to:
The text was updated successfully, but these errors were encountered: