@fuentis/phoenix-ui 0.0.9-alpha.529 → 0.0.9-alpha.531
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4049,13 +4049,14 @@ class MetaFormAbstract {
|
|
|
4049
4049
|
this.onFormSubmit.emit(this.metaForm);
|
|
4050
4050
|
}
|
|
4051
4051
|
onCancel() {
|
|
4052
|
-
this.
|
|
4052
|
+
this.resetToInitialValues();
|
|
4053
4053
|
this.onFormCancel.emit();
|
|
4054
4054
|
}
|
|
4055
4055
|
resetToInitialValues() {
|
|
4056
|
-
this.metaForm.
|
|
4056
|
+
this.metaForm.reset(this.metaFormValues ?? {}, { emitEvent: false });
|
|
4057
4057
|
this.metaForm.markAsPristine();
|
|
4058
4058
|
this.metaForm.markAsUntouched();
|
|
4059
|
+
this.metaForm.updateValueAndValidity({ emitEvent: false });
|
|
4059
4060
|
}
|
|
4060
4061
|
ngOnDestroy() {
|
|
4061
4062
|
this.cleanupDependencies();
|