From 7fbdfe3a5ef2e9ab96e4385ad4aee636543843d2 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 17 Aug 2023 11:26:53 +0200 Subject: [PATCH] fix: remove unused html from wish details modal --- src/assets/js/parts/wish.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/assets/js/parts/wish.js b/src/assets/js/parts/wish.js index e26fad68..fca41544 100644 --- a/src/assets/js/parts/wish.js +++ b/src/assets/js/parts/wish.js @@ -72,6 +72,10 @@ $(function () { 'onHide' : function(modal) { wish_unset(); }, + 'onHidden' : function() { + $(this).modal('destroy'); + $(this).remove(); + } }) .modal('show') .addClass(wish_details_size);