diff --git a/src/ol/dom/input.js b/src/ol/dom/input.js index f2737bcc0a..4b078616c2 100644 --- a/src/ol/dom/input.js +++ b/src/ol/dom/input.js @@ -152,7 +152,10 @@ ol.dom.Input.prototype.handleInputChanged_ = function() { this.setChecked(this.target_.checked); } else { this.setValue(this.target_.value); - this.setValueAsNumber(this.target_.valueAsNumber); + var number = this.target_.valueAsNumber; + if (goog.isDef(number) && !isNaN(number)) { + this.setValueAsNumber(number); + } } };