Skip to content

Commit

Permalink
Prevent attribution button from submitting forms (#1477)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadain authored and Pessimistress committed Jun 4, 2021
1 parent 231e718 commit 7fe22d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/attribution-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function AttributionControl(props) {
}`}
>
<button
type="button"
className="mapboxgl-ctrl-attrib-button"
title={props.toggleLabel}
onClick={toggleAttribution}
Expand Down

0 comments on commit 7fe22d0

Please sign in to comment.