Skip to content

Commit

Permalink
Fix removing the iframe src after displaying the modal twice
Browse files Browse the repository at this point in the history
  • Loading branch information
MansourNazifiAsl committed May 6, 2024
1 parent b7be1be commit 62063ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overrides/hubAjaxRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 62063ff

Please sign in to comment.