[ACS-5849] [ACS-5848] Incomplete string escaping fix (#3390)

* [ACS-5849] Incomplete string escaping fix

* [ACS-5849] Incomplete string escaping fix

* [ACS-5848] Incomplete string escaping fix
This commit is contained in:
Mykyta Maliarchuk
2023-08-18 15:07:14 +02:00
committed by GitHub
parent 52cc1d174e
commit ff8a9844d8
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ export class ToolbarButtonComponent {
runAction() { runAction() {
if (this.hasClickAction(this.actionRef)) { if (this.hasClickAction(this.actionRef)) {
this.extensions.runActionById(this.actionRef.actions.click, { this.extensions.runActionById(this.actionRef.actions.click, {
focusedElementOnCloseSelector: `#${this.actionRef.id.replace(/\./g, '\\.')}` focusedElementOnCloseSelector: `#${this.actionRef.id.replace(/\\/g, '\\\\').replace(/\./g, '\\.')}`
}); });
} }
} }

View File

@@ -63,7 +63,7 @@ export class ToolbarMenuItemComponent {
this.actionRef.actions.click, this.actionRef.actions.click,
this.menuId this.menuId
? { ? {
focusedElementOnCloseSelector: `#${this.menuId.replace(/\./g, '\\.')}` focusedElementOnCloseSelector: `#${this.menuId.replace(/\\/g, '\\\\').replace(/\./g, '\\.')}`
} }
: undefined : undefined
); );