fix(ivy): get name directly from nativeNode (#32198)
nativeElement can return null so an error can occur when accessing nodeName from nativeElement. PR Close #32198
This commit is contained in:

committed by
Andrew Kushnir

parent
cfed0c0cf1
commit
3dbc4ab572
@ -247,7 +247,7 @@ class DebugElement__POST_R3__ extends DebugNode__POST_R3__ implements DebugEleme
|
||||
return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode as Element : null;
|
||||
}
|
||||
|
||||
get name(): string { return this.nativeElement !.nodeName; }
|
||||
get name(): string { return this.nativeNode.nodeName; }
|
||||
|
||||
/**
|
||||
* Gets a map of property names to property values for an element.
|
||||
|
Reference in New Issue
Block a user