mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
committed by
GitHub
parent
52cc1d174e
commit
ff8a9844d8
@@ -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, '\\.')}`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user