Another attempt
This commit is contained in:
parent
d0bd257a8e
commit
fe8eb74242
|
@ -245,7 +245,9 @@ function MediaModal({
|
|||
left: carouselRef.current.clientWidth * (currentIndex - 1),
|
||||
behavior: 'smooth',
|
||||
});
|
||||
setTimeout(() => {
|
||||
carouselRef.current.focus();
|
||||
}, 100);
|
||||
}}
|
||||
>
|
||||
<Icon icon="arrow-left" />
|
||||
|
@ -261,7 +263,9 @@ function MediaModal({
|
|||
left: carouselRef.current.clientWidth * (currentIndex + 1),
|
||||
behavior: 'smooth',
|
||||
});
|
||||
setTimeout(() => {
|
||||
carouselRef.current.focus();
|
||||
}, 100);
|
||||
}}
|
||||
>
|
||||
<Icon icon="arrow-right" />
|
||||
|
|
Loading…
Reference in a new issue