Merge pull request #1542 from rachel-fenichel/bugfix/1539

Fix #1539
This commit is contained in:
Rachel Fenichel
2018-01-18 10:27:26 -08:00
committed by GitHub

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();
}
};