From 14a16c7283483ff22ce22b070a430a61d24a7f35 Mon Sep 17 00:00:00 2001 From: Johannes Eder Date: Fri, 6 Aug 2021 13:50:32 +0200 Subject: [PATCH] fix(async-form): destroy all after response is processed --- frontend/src/utils/async-form/async-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/async-form/async-form.js b/frontend/src/utils/async-form/async-form.js index 17f2c0810..1365150c6 100644 --- a/frontend/src/utils/async-form/async-form.js +++ b/frontend/src/utils/async-form/async-form.js @@ -60,6 +60,7 @@ export class AsyncForm { setTimeout(() => { parentElement.insertBefore(responseElement, this._element); this._element.remove(); + this._app.utilRegistry.destroyAll(this._element); }, delay); } @@ -102,6 +103,5 @@ export class AsyncForm { this._processResponse({ content: failureMessage }); this._element.classList.remove(ASYNC_FORM_LOADING_CLASS); }); - this._app.utilRegistry.destroyAll(this._element); } }