From 62063ffab7cbb8c1bdbee146301a971f842ca241 Mon Sep 17 00:00:00 2001 From: mansour_nazifiasl_geeksltd Date: Mon, 6 May 2024 16:23:54 +0100 Subject: [PATCH] Fix removing the iframe src after displaying the modal twice --- src/overrides/hubAjaxRedirect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overrides/hubAjaxRedirect.ts b/src/overrides/hubAjaxRedirect.ts index fd67067..81582ed 100644 --- a/src/overrides/hubAjaxRedirect.ts +++ b/src/overrides/hubAjaxRedirect.ts @@ -72,7 +72,7 @@ export default class HubAjaxRedirect extends AjaxRedirect { ajaxTarget?: string, ajaxhref?: string ): boolean { - if (!$(trigger).parent().hasClass("modal-body")) + if (!$(trigger).closest(".modal-body")) $("iframe.view-frame").attr("src", "").attr("style", ""); return super.go(url, trigger, isBack, keepScroll, addToHistory, onComplete, ajaxTarget, ajaxhref); }