diff --git a/core/block_svg.js b/core/block_svg.js index e94f5bd43..4133b6fdc 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -1514,6 +1514,9 @@ Blockly.BlockSvg.prototype.setDisabled = function(disabled) { * @param {boolean} highlighted True if highlighted. */ Blockly.BlockSvg.prototype.setHighlighted = function(highlighted) { + if (!this.rendered) { + return; + } if (highlighted) { this.svgPath_.setAttribute('filter', 'url(#' + this.workspace.options.embossFilterId + ')');