updating tabindexon target block grom 0 to -1

This commit is contained in:
Antoine M 2024-04-08 15:35:46 +02:00
parent 6b85764b10
commit bfc0f5e150

View File

@ -10,7 +10,7 @@ export default function singleConseil() {
let target = e.target.getAttribute('href'); let target = e.target.getAttribute('href');
let targetBlock = document.querySelector(target); let targetBlock = document.querySelector(target);
targetBlock.setAttribute('tabindex', '0'); targetBlock.setAttribute('tabindex', '-1');
targetBlock.scrollIntoView({ targetBlock.scrollIntoView({
behavior: 'smooth', behavior: 'smooth',
}); });