De-shadow blocks that have been edited.

This commit is contained in:
Neil Fraser
2015-10-14 18:20:53 -07:00
parent ded524ff3a
commit 9b26d0d260
6 changed files with 24 additions and 11 deletions

View File

@@ -195,6 +195,7 @@ Blockly.FieldTextInput.prototype.onHtmlInputChange_ = function(e) {
// Update source block.
var text = htmlInput.value;
if (text !== htmlInput.oldValue_) {
this.sourceBlock_.setShadow(false);
htmlInput.oldValue_ = text;
this.setText(text);
this.validate_();