Add missing 'button' type attribute to html button
This commit is contained in:
@@ -46,7 +46,8 @@ ol.control.FullScreen = function(opt_options) {
|
||||
|
||||
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||
'class': this.cssClassName_ + '-' + goog.dom.fullscreen.isFullScreen() +
|
||||
' ol-has-tooltip'
|
||||
' ol-has-tooltip',
|
||||
'type': 'button'
|
||||
});
|
||||
goog.dom.appendChild(button, tip);
|
||||
var buttonHandler = new ol.pointer.PointerEventHandler(button);
|
||||
|
||||
@@ -39,7 +39,8 @@ ol.control.ZoomToExtent = function(opt_options) {
|
||||
'role' : 'tooltip'
|
||||
}, tipLabel);
|
||||
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||
'class': 'ol-has-tooltip'
|
||||
'class': 'ol-has-tooltip',
|
||||
'type': 'button'
|
||||
});
|
||||
goog.dom.appendChild(button, tip);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user