Skip to content

Commit

Permalink
fix: Prevent loader stealing card iframe focus
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Oct 9, 2024
1 parent 8de957f commit 0bd0e46
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export class CardPopover implements IViewBinding {

hideLoader(){
this.loading = false;
// Return focus to iframe
const iframe = document.getElementsByClassName("tokenscript-frame");
if (iframe.length)
(iframe[0] as HTMLIFrameElement).contentWindow.focus();
}

showLoader(show= true) {
Expand Down

0 comments on commit 0bd0e46

Please sign in to comment.