mirror of
https://github.com/google/blockly.git
synced 2026-01-14 20:37:10 +01:00
Render block after mutation change
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user