From 8e2a3335aba042fa805206f5c95ada7cd1d548cb Mon Sep 17 00:00:00 2001 From: John Livingston Date: Mon, 1 Jul 2024 14:53:52 +0200 Subject: [PATCH] Poll WIP (#231): * fix frontend: modal must be destroyed on hide --- conversejs/custom/plugins/poll/modals/poll-form.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conversejs/custom/plugins/poll/modals/poll-form.js b/conversejs/custom/plugins/poll/modals/poll-form.js index 038e5c44..f56bb9c3 100644 --- a/conversejs/custom/plugins/poll/modals/poll-form.js +++ b/conversejs/custom/plugins/poll/modals/poll-form.js @@ -13,6 +13,11 @@ class PollFormModal extends BaseModal { super.initialize() } + onHide () { + super.onHide() + api.modal.remove('livechat-converse-poll-form-modal') + } + renderModal () { return html`` }