mirror of
https://github.com/google/blockly.git
synced 2026-03-16 10:10:10 +01:00
Fix broken highlighting when highlighted block is deleted. Issue 752.
This commit is contained in:
@@ -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 + ')');
|
||||
|
||||
Reference in New Issue
Block a user