mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 03:48:55 +01:00
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:
parent
f2a537be0a
commit
833a9a1c4c
@ -468,7 +468,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
|||||||
|
|
||||||
getDomNode(_id): SlTreeItem|null
|
getDomNode(_id): SlTreeItem|null
|
||||||
{
|
{
|
||||||
return this.shadowRoot.querySelector("sl-tree-item[id='" + _id + "'");
|
return this.shadowRoot.querySelector('sl-tree-item[id="' + _id.replace(/"/g, '\\"') + '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user