Temporary fix for broken text field validation.

This commit is contained in:
Rachel Fenichel
2017-01-20 22:07:04 -08:00
parent 36eb0787cc
commit ec027baa5e

View File

@@ -216,7 +216,7 @@ Blockly.FieldTextInput.prototype.onHtmlInputChange_ = function(e) {
var text = htmlInput.value;
if (text !== htmlInput.oldValue_) {
htmlInput.oldValue_ = text;
this.setText(text);
this.setValue(text);
this.validate_();
} else if (goog.userAgent.WEBKIT) {
// Cursor key. Render the source block to show the caret moving.