Skip to content

Commit

Permalink
Merge pull request #4773 from thematters/disable-image-lightbox-loop
Browse files Browse the repository at this point in the history
feat(MomentDigest): disable lightbox loop
  • Loading branch information
wlliaml authored Aug 23, 2024
2 parents ff0183b + 6b29408 commit dacf948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/MomentDigest/Assets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ const Assets = ({ moment }: { moment: MomentDigestAssetsMomentFragment }) => {
data-test-id={TEST_ID.MOMENT_DIGEST_ASSETS}
>
<Gallery
options={{}}
options={{
loop: false,
}}
onOpen={(photoswipe: PhotoSwipe) => {
const closePhotoswipeListener = () => {
document.addEventListener('keyup', (event) => {
Expand Down

0 comments on commit dacf948

Please sign in to comment.