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

Prevent attribution button from submitting forms #1477

Merged
merged 2 commits into from
Jun 4, 2021
Merged

Prevent attribution button from submitting forms #1477

merged 2 commits into from
Jun 4, 2021

Conversation

rajadain
Copy link
Contributor

@rajadain rajadain commented May 28, 2021

If the Map is embedded within a form, clicking the attribution button submits it by default.
By explicitly declaring it as a "button" and not "submit", we ensure that doesn't happen.

For details see https://stackoverflow.com/a/10836076/6995854

If the Map is embedded within a form, clicking the attribution button submits is by default.
By explicitly declaring it as a "button" and not "submit", we ensure that doesn't happen.

For details see https://stackoverflow.com/a/10836076/6995854
@Pessimistress Pessimistress merged commit 55a5d59 into visgl:master Jun 4, 2021
@rajadain
Copy link
Contributor Author

rajadain commented Jun 4, 2021

Thank you!

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