Skip to content

Commit

Permalink
Merge pull request #1743 from INN/1700-clicking-on-image-in-slideshow…
Browse files Browse the repository at this point in the history
…-breaks-image-in-content

Make sure the gallery doesn't have a `navis-before` child on open
  • Loading branch information
Josh Darby committed Jul 12, 2019
2 parents b9d0d8b + af10ead commit 39a0fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navis-slideshows/js/navis-slideshows.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
maybeHideStickyNav();

// If the image isn't linked
if (gallery[0].localName !== "a"){
if (gallery[0].localName !== "a" && gallery.find('.navis-before').length == 0){
gallery.addClass('navis-slideshow navis-single navis-full');

// Add the close (X) button
Expand Down

0 comments on commit 39a0fc4

Please sign in to comment.