Set type=button to avoid forms submit
This commit is contained in:
@@ -96,7 +96,8 @@ ol.control.Attribution = function(opt_options) {
|
|||||||
*/
|
*/
|
||||||
this.labelSpan_ = label;
|
this.labelSpan_ = label;
|
||||||
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||||
'class': 'ol-has-tooltip'
|
'class': 'ol-has-tooltip',
|
||||||
|
'type': 'button'
|
||||||
}, this.labelSpan_);
|
}, this.labelSpan_);
|
||||||
goog.dom.appendChild(button, tip);
|
goog.dom.appendChild(button, tip);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user