diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index c87eeb2f10..3f17b9874a 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -195,6 +195,11 @@ export class WebPlatformUtilsService implements PlatformUtilsService { } } + const bootstrapModal = document.querySelector('div.modal'); + if (bootstrapModal != null) { + bootstrapModal.removeAttribute('tabindex'); + } + const iconHtmlStr = iconClasses != null ? `` : undefined; const confirmed = await Swal.fire({ heightAuto: false, @@ -210,6 +215,10 @@ export class WebPlatformUtilsService implements PlatformUtilsService { confirmButtonText: confirmText == null ? this.i18nService.t('ok') : confirmText, }); + if (bootstrapModal != null) { + bootstrapModal.setAttribute('tabindex', '-1'); + } + return confirmed.value; }