diff --git a/projects/aca-shared/src/lib/components/toolbar/toolbar-button/toolbar-button.component.ts b/projects/aca-shared/src/lib/components/toolbar/toolbar-button/toolbar-button.component.ts index 012f407ed2..e2d27cb6fb 100644 --- a/projects/aca-shared/src/lib/components/toolbar/toolbar-button/toolbar-button.component.ts +++ b/projects/aca-shared/src/lib/components/toolbar/toolbar-button/toolbar-button.component.ts @@ -68,7 +68,7 @@ export class ToolbarButtonComponent { runAction() { if (this.hasClickAction(this.actionRef)) { this.extensions.runActionById(this.actionRef.actions.click, { - focusedElementOnCloseSelector: `#${this.actionRef.id.replace(/\./g, '\\.')}` + focusedElementOnCloseSelector: `#${this.actionRef.id.replace(/\\/g, '\\\\').replace(/\./g, '\\.')}` }); } } diff --git a/projects/aca-shared/src/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.ts b/projects/aca-shared/src/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.ts index fc875c6c18..56b3845ec1 100644 --- a/projects/aca-shared/src/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.ts +++ b/projects/aca-shared/src/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.ts @@ -63,7 +63,7 @@ export class ToolbarMenuItemComponent { this.actionRef.actions.click, this.menuId ? { - focusedElementOnCloseSelector: `#${this.menuId.replace(/\./g, '\\.')}` + focusedElementOnCloseSelector: `#${this.menuId.replace(/\\/g, '\\\\').replace(/\./g, '\\.')}` } : undefined );