diff --git a/core/renderers/geras/path_object.ts b/core/renderers/geras/path_object.ts index 62f721c954b..99d7b478377 100644 --- a/core/renderers/geras/path_object.ts +++ b/core/renderers/geras/path_object.ts @@ -103,16 +103,15 @@ export class PathObject extends BasePathObject { } override updateHighlighted(highlighted: boolean) { + super.updateHighlighted(highlighted); if (highlighted) { this.svgPath.setAttribute( 'filter', 'url(#' + this.constants.embossFilterId + ')', ); - this.svgRoot.classList.add('blocklyHighlighted'); this.svgPathLight.style.display = 'none'; } else { this.svgPath.setAttribute('filter', 'none'); - this.svgRoot.classList.remove('blocklyHighlighted'); this.svgPathLight.style.display = 'inline'; } }