Skip to content

Commit d059fa3

Browse files
authored
Merge pull request #16043 from IgniteUI/dpetev/fix-elements-uuid
fix(elements): bridged template track uuid use util with fallback
2 parents b5a7cae + 2733553 commit d059fa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular-elements/src/app/wrapper/template-ref-wrapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ElementRef, EmbeddedViewRef, Injector, TemplateRef } from '@angular/core';
2+
import { getUUID } from '../../../../igniteui-angular/src/lib/grids/common/random';
23

34
const CONTEXT_PROP = 'context';
45
const IMPLICIT_PROP = 'implicit';
@@ -75,7 +76,7 @@ export class TemplateRefWrapper<C extends object> extends TemplateRef<C> {
7576
root = viewRef.rootNodes[0];
7677

7778
contentContext = new TemplateRefWrapperContentContext();
78-
contentId = crypto.randomUUID();
79+
contentId = getUUID();
7980
contentContext._id = contentId;
8081
root._id = contentId;
8182
contentContext.root = root;

0 commit comments

Comments
 (0)