Photoswipe: Page being refreshed if I click on any button

Created on 26 Sep 2016  路  3Comments  路  Source: dimsemenov/PhotoSwipe

If I click on any button, be it the buttons to scroll between images, the full screen button, or the close button itself the viewer closes and the page behind is refreshed.

If clicking on one of the scroll buttons the new image is loaded briefly before the page is refreshed and the viewer is closed.

I have tried fiddling with options to no avail.

This is using .Net webforms.

Thanks.

Most helpful comment

You may also just add type="button" attribute to <button> elements.

All 3 comments

Was this page helpful?
0 / 5 - 0 ratings