fix JS error leaving mail-tree in main window caused by not properly escaped single quotes when constructing a querySelector

This commit is contained in:
ralf 2024-07-15 15:22:33 +02:00
parent f2a537be0a
commit 833a9a1c4c

View File

@ -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, '\\"') + '"');
}