web: rename Form.reset to resetForm to prevent t.form is not a function error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-06-06 19:28:16 +02:00
parent fceab788d2
commit a36e3aa3a4
5 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ export class ModalForm extends ModalButton {
return formPromise.then(() => {
if (this.closeAfterSuccessfulSubmit) {
this.open = false;
form?.reset();
form?.resetForm();
}
this.dispatchEvent(
new CustomEvent(EVENT_REFRESH, {