diff --git a/javascript/tokenscript-viewer/src/components/common/card-view/card-popover.tsx b/javascript/tokenscript-viewer/src/components/common/card-view/card-popover.tsx index 5899ce5..6abfa01 100644 --- a/javascript/tokenscript-viewer/src/components/common/card-view/card-popover.tsx +++ b/javascript/tokenscript-viewer/src/components/common/card-view/card-popover.tsx @@ -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) {