We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
button
type="button"
button elements created by Mapbox should have type="button", to ensure they never function as submit buttons if the map is within a form element.
form
mapbox-gl-js version: v2.2.0
browser: N/A
Create a HTML form, and mount a Mapbox map somewhere inside it.
Click the toggle attribution button in the bottom right of the map, and notice that it submits the form:
Buttons created by Mapbox within the map should not submit a surrounding form when clicked. For proper semantics, they should have type="button".
The opposite.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
button
elements created by Mapbox should havetype="button"
, to ensure they never function as submit buttons if the map is within aform
element.mapbox-gl-js version: v2.2.0
browser: N/A
Steps to Trigger Behavior
Create a HTML
form
, and mount a Mapbox map somewhere inside it.Click the toggle attribution button in the bottom right of the map, and notice that it submits the form:
Expected Behavior
Buttons created by Mapbox within the map should not submit a surrounding form when clicked. For proper semantics, they should have
type="button"
.Actual Behavior
The opposite.
The text was updated successfully, but these errors were encountered: