diff --git a/core/field_textinput.js b/core/field_textinput.js index 3fe075819..4d588e72e 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -195,7 +195,7 @@ Blockly.FieldTextInput.prototype.onHtmlInputChange_ = function(e) { var text = htmlInput.value; if (text !== htmlInput.oldValue_) { htmlInput.oldValue_ = text; - this.setValue(text); + this.setText(text); this.validate_(); } else if (goog.userAgent.WEBKIT) { // Cursor key. Render the source block to show the caret moving.