diff --git a/core/block_svg.js b/core/block_svg.js index 056cb8052..0f5f51546 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -889,6 +889,10 @@ Blockly.BlockSvg.prototype.showContextMenu_ = function(e) { this.customContextMenu(menuOptions); } + if (this.flyoutCustomContextMenu && block.isInFlyout) { + this.flyoutCustomContextMenu(menuOptions); + } + Blockly.ContextMenu.show(e, menuOptions, this.RTL); Blockly.ContextMenu.currentBlock = this; };