diff --git a/api/js/etemplate/Et2Tree/Et2Tree.ts b/api/js/etemplate/Et2Tree/Et2Tree.ts index ed624e22b5..900a3bb54a 100644 --- a/api/js/etemplate/Et2Tree/Et2Tree.ts +++ b/api/js/etemplate/Et2Tree/Et2Tree.ts @@ -468,7 +468,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) getDomNode(_id): SlTreeItem|null { - return this.shadowRoot.querySelector("sl-tree-item[id='" + _id + "'"); + return this.shadowRoot.querySelector('sl-tree-item[id="' + _id.replace(/"/g, '\\"') + '"'); }