Readded reevaluating values when constraints are set. (#2507)

This commit is contained in:
Beka Westberg
2019-05-29 12:48:55 -07:00
committed by RoboErikG
parent 459961c3cb
commit 9099ee8c14

View File

@@ -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());
};
/**