@rxap/forms 13.0.0-next.1 → 13.0.0-next.2
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.
package/fesm2020/rxap-forms.mjs
CHANGED
|
@@ -1986,8 +1986,12 @@ class FormSubmitDirective extends ConfirmClick {
|
|
|
1986
1986
|
this._resetAfterSubmit = coerceBoolean(value);
|
|
1987
1987
|
}
|
|
1988
1988
|
execute() {
|
|
1989
|
-
this.
|
|
1990
|
-
|
|
1989
|
+
this.formDirective.form.markAllAsDirty();
|
|
1990
|
+
this.formDirective.form.markAllAsTouched();
|
|
1991
|
+
this.formDirective.cdr.markForCheck();
|
|
1992
|
+
this.subscription = this.formDirective.rxapSubmit.pipe(take(1), tap(value => {
|
|
1993
|
+
const clonedValue = clone(value);
|
|
1994
|
+
this.afterSubmit.emit(clonedValue);
|
|
1991
1995
|
if (this._resetAfterSubmit) {
|
|
1992
1996
|
this.formDirective.reset();
|
|
1993
1997
|
}
|