This commit is contained in:
Rachel Fenichel
2018-01-16 18:07:13 -08:00
parent 3f61f71f35
commit 68cee9da42

View File

@@ -923,8 +923,9 @@ Blockly.WorkspaceSvg.prototype.paste = function(xmlBlock) {
* @private
*/
Blockly.WorkspaceSvg.prototype.refreshToolboxSelection_ = function() {
if (this.toolbox_ && this.toolbox_.flyout_ && !this.currentGesture_) {
this.toolbox_.refreshSelection();
var ws = this.isFlyout ? this.targetWorkspace : this;
if (ws && !ws.currentGesture_ && ws.toolbox_ && ws.toolbox_.flyout_) {
ws.toolbox_.refreshSelection();
}
};