diff --git a/ShadowEditor.Web/src/ui/Number.js b/ShadowEditor.Web/src/ui/Number.js index 44c1ebc6..f50d9241 100644 --- a/ShadowEditor.Web/src/ui/Number.js +++ b/ShadowEditor.Web/src/ui/Number.js @@ -97,7 +97,7 @@ Number.prototype.render = function () { _this.setValue(_this.dom.value); if (_this.onChange) { - _this.onChange.call(_this, _this.dom.value); + _this.onChange.call(_this, parseFloat(_this.dom.value)); } }