Another attempt

This commit is contained in:
Lim Chee Aun 2023-08-14 21:09:14 +08:00
parent d0bd257a8e
commit fe8eb74242

View file

@ -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" />