Skip to content
New issue

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

Prevent buttons in controls from acting like form submit buttons #2935

Merged
merged 1 commit into from
Aug 3, 2016

Conversation

lucaswoj
Copy link
Contributor

@lucaswoj lucaswoj commented Aug 3, 2016

@mollymerp
Copy link
Contributor

🙏 🚢

@lucaswoj lucaswoj merged commit 1724613 into master Aug 3, 2016
@lucaswoj lucaswoj deleted the button branch August 3, 2016 18:36
@achalnexus
Copy link

I face same issue but i don't got the issue.. Give me some help related this.

@woowoowoo
Copy link

@achalnexus it'll turn up in a future release, but if you can't wait, slip this into your code:

// temporary fix to prevent form submitting when zoom controls are clicked
var navControls = document.getElementsByClassName('mapboxgl-ctrl-icon');
for ( var i = 0; i < navControls.length; i++ ) {
navControls[i].setAttribute('type', 'button');
}

kindly provided by mapbox support :-)

@achalnexus
Copy link

achalnexus commented Aug 13, 2016

Thank you so much.. :)

@achalnexus
Copy link

How to set custom marker icon set in mapbox not in studio.??
Also radius draw with miles.??

@lucaswoj
Copy link
Contributor Author

@achalnexus Due to the large volume of issues we get and the relatively small size of our team, we are unable to provide support here on GitHub. I recommend asking these questions on Stack Overflow.

mollymerp pushed a commit that referenced this pull request Mar 10, 2017
Prevent Fullscreen control's button from acting like form submit buttons. 

Similar to #2934, #2935
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map in form submits when zoom control buttons are clicked
4 participants