Merge pull request #840 from rachel-fenichel/bugfix/procedure_rename

Use setValue in fieldTextInput so that procedure renaming works
This commit is contained in:
Rachel Fenichel
2017-01-20 22:04:16 -08:00
committed by GitHub

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.