Skip to content

Commit 7fe22d0

Browse files
rajadainPessimistress
authored andcommitted
Prevent attribution button from submitting forms (#1477)
1 parent 231e718 commit 7fe22d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/attribution-control.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function AttributionControl(props) {
7979
}`}
8080
>
8181
<button
82+
type="button"
8283
className="mapboxgl-ctrl-attrib-button"
8384
title={props.toggleLabel}
8485
onClick={toggleAttribution}

0 commit comments

Comments
 (0)