Render block after mutation change

This commit is contained in:
Evan W. Patton
2019-01-31 16:59:53 +01:00
parent c5ead64c2b
commit 174cda1495

View File

@@ -597,6 +597,8 @@ Blockly.Events.Change.prototype.run = function(forward) {
value = value || '<mutation></mutation>';
var dom = Blockly.Xml.textToDom('<xml>' + value + '</xml>');
block.domToMutation(dom.firstChild);
block.initSvg();
block.render();
}
Blockly.Events.fire(new Blockly.Events.Change(
block, 'mutation', null, oldMutation, value));