Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding type attribute to button tags to avoid form submitting #1638

Closed
wants to merge 1 commit into from

Conversation

m0ns1f
Copy link

@m0ns1f m0ns1f commented Jul 27, 2019

Hi,
When adding PhotoSwipe (.pswp) element to DOM inside a block, it may some time create a conflict when the block is a form.
We have added the html attribute type="button" to all buttons inside PhotoSwipe (.pswp) element to avoid that conflict.

@dimsemenov
Copy link
Owner

Fixed by v5.0.

@dimsemenov dimsemenov closed this Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants