updating tabindexon target block grom 0 to -1
This commit is contained in:
parent
6b85764b10
commit
bfc0f5e150
|
|
@ -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',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user