Merge pull request #6916 from vvlladd28/bug/maps/tooltip-action-with-space

[3.4] UI: Fixed not handle tooltip actions with contains space in name for map widgets
This commit is contained in:
Igor Kulikov 2022-07-11 18:25:44 +03:00 committed by GitHub
commit 26585d4ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,11 +116,11 @@ const linkActionRegex = /<link-act name=['"]([^['"]*)['"]>([^<]*)<\/link-act>/g;
const buttonActionRegex = /<button-act name=['"]([^['"]*)['"]>([^<]*)<\/button-act>/g;
function createLinkElement(actionName: string, actionText: string): string {
return `<a href="javascript:void(0);" class="tb-custom-action" data-action-name=${actionName}>${actionText}</a>`;
return `<a href="javascript:void(0);" class="tb-custom-action" data-action-name="${actionName}">${actionText}</a>`;
}
function createButtonElement(actionName: string, actionText: string) {
return `<button mat-button class="tb-custom-action" data-action-name=${actionName}>${actionText}</button>`;
return `<button mat-button class="tb-custom-action" data-action-name="${actionName}">${actionText}</button>`;
}
function parseTemplate(template: string, data: FormattedData,