mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Hide flyout after Events are re-enabled when creating a block (#4055)
This commit is contained in:
@@ -765,12 +765,13 @@ Blockly.Flyout.prototype.createBlock = function(originalBlock) {
|
||||
this.targetWorkspace.setResizesEnabled(false);
|
||||
try {
|
||||
newBlock = this.placeNewBlock_(originalBlock);
|
||||
// Close the flyout.
|
||||
Blockly.hideChaff();
|
||||
} finally {
|
||||
Blockly.Events.enable();
|
||||
}
|
||||
|
||||
// Close the flyout.
|
||||
Blockly.hideChaff();
|
||||
|
||||
var newVariables = Blockly.Variables.getAddedVariables(this.targetWorkspace,
|
||||
variablesBeforeCreation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user