Prevent attribution button from submitting forms (#1477)

This commit is contained in:
Terence Tuhinanshu 2021-06-04 16:49:13 -04:00 committed by Xiaoji Chen
parent 18a3d71aae
commit 0d902d4860

View File

@ -79,6 +79,7 @@ function AttributionControl(props) {
}`}
>
<button
type="button"
className="mapboxgl-ctrl-attrib-button"
title={props.toggleLabel}
onClick={toggleAttribution}