diff --git a/SecureSend/ClientApp/src/components/ConfirmModal.vue b/SecureSend/ClientApp/src/components/ConfirmModal.vue index 0484621..9ba31fc 100644 --- a/SecureSend/ClientApp/src/components/ConfirmModal.vue +++ b/SecureSend/ClientApp/src/components/ConfirmModal.vue @@ -9,6 +9,7 @@ onMounted(() => { trapFocus(dialogElement.value!); }); const trapFocus = (element: HTMLElement) => { + element.focus(); const focusableEls = element.querySelectorAll( 'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])' );