diff --git a/core/field_number.js b/core/field_number.js index 636621aca..2e729d193 100644 --- a/core/field_number.js +++ b/core/field_number.js @@ -96,6 +96,7 @@ Blockly.FieldNumber.prototype.setConstraints = function(min, max, precision) { this.min_ = isNaN(min) ? -Infinity : min; max = parseFloat(max); this.max_ = isNaN(max) ? Infinity : max; + this.setValue(this.getValue()); }; /**