Add missing 'button' type attribute to html button

This commit is contained in:
Frederic Junod
2014-10-07 12:25:01 +02:00
parent 90fb83b95e
commit 0cf83c2047
2 changed files with 4 additions and 2 deletions

View File

@@ -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);