Magnific-Popup
Magnific-Popup copied to clipboard
Next button in gallery of inline items not working initially
The "next" button on a popup in gallery mode, at least with 'inline' items, does not work correctly initially.
The initial slide shows correctly. When I click the next button, it shows a blank - an empty popup. However once I cycle through all items using the "previous" button which works correctly, the "next" button starts working correctly too.
I can also cycle forward using the next button, and items will eventually start appearing. Specifically, the first item that will show (other than the initial item) will be the last item in the gallery, but it will only show at the end of the second cycle. Other than that, the first two cycles will be blank; not even the initial item will show again during the second cycle.
Aaaalright, this is what happens when you pass a numerical string instead of a number as the index argument. Please consider coercing the argument to an integer number, as this might be a common scenario (think of a data- attribute on an element that is supposed to pop up a particular slide when clicked; attribute values are strings).
This is still an issue, anybody has a solution?
Getting into same issue...
Facing a similar problem. If I click the 'previous' arrow while on the first gallery slide, it goes to a blank slide - then if I press the 'next' arrow it displays 'content not found.' Press next again and it displays the second side exactly as I want. Same thing happens if I press 'next' on the last image in the gallery....
Also having this issue. If anyone has found a solution please post it.
Not sure if this was the same problem of mine, but I was having trouble with inline next and prev buttons. I had multiple links with the same class I was using for the class popup, a title link and img link per item with the same class... this made me have to click multiple times to get to the next slide. I just a differnt class for the img like... open-modal-1, open-modal-2 , each with own jquery initializations. This fixed multiple clicks to get to the next slide. Maybe not the most elegant solution but it works for me.