From 5de1cc7c1ac6182c18c1f46120bffbc20bf52a92 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 28 May 2021 10:29:23 -0400 Subject: [PATCH] Prevent attribution button from submitting forms 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 --- src/components/attribution-control.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/attribution-control.js b/src/components/attribution-control.js index 11519098c..a574b4894 100644 --- a/src/components/attribution-control.js +++ b/src/components/attribution-control.js @@ -79,6 +79,7 @@ function AttributionControl(props) { }`} >