Skip to content

Commit 4d1e5f0

Browse files
authored
Merge pull request #16045 from IgniteUI/dpetev/fix-elements-uuid-19.1
fix(elements): bridged template track uuid use util with fallback
2 parents 73fdd61 + 8a331a3 commit 4d1e5f0

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';
@@ -70,7 +71,7 @@ export class TemplateRefWrapper<C extends object> extends TemplateRef<C> {
7071
root = viewRef.rootNodes[0];
7172

7273
contentContext = new TemplateRefWrapperContentContext();
73-
contentId = crypto.randomUUID();
74+
contentId = getUUID();
7475
contentContext._id = contentId;
7576
root._id = contentId;
7677
contentContext.root = root;

0 commit comments

Comments
 (0)