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.