From 27176b105c0e98c6b36ae5af6c0a071d18275b4c Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 21 Nov 2023 18:32:16 +0100 Subject: [PATCH] Dont move the focus when the banner appear (except for centered alert) Fix #1168 --- tarteaucitron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index dc8c6f7e..c5f5bd39 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -1404,7 +1404,7 @@ var tarteaucitron = { } //end ie compatibility - if (document.getElementById('tarteaucitronAlertBig') !== null) { + if (document.getElementById('tarteaucitronAlertBig') !== null && tarteaucitron.parameters.orientation === 'middle') { document.getElementById('tarteaucitronAlertBig').focus(); }