Add focus on the alert for keyboard navigation

This commit is contained in:
Amauri CHAMPEAUX 2021-04-13 13:52:49 +02:00
parent f4450c5a73
commit 279523f18d
1 changed files with 4 additions and 0 deletions

View File

@ -1234,6 +1234,10 @@ var tarteaucitron = {
}
//end ie compatibility
if (document.getElementById('tarteaucitronPersonalize2') !== null) {
document.getElementById('tarteaucitronPersonalize2').focus();
}
window.dispatchEvent(tacOpenAlertEvent);
},
"closeAlert": function () {