From ec027baa5e801ae59e7e43d63bbf9c8cbdaf447e Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Fri, 20 Jan 2017 22:07:04 -0800 Subject: [PATCH] Temporary fix for broken text field validation. --- core/field_textinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_textinput.js b/core/field_textinput.js index 5c6e66215..ed7d5af85 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -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.