fix(core): fix isComponentView()
and isEmbeddedView()
tests (#14789)
fixes #14778
This commit is contained in:

committed by
Igor Minar

parent
d1182af1a4
commit
5753de50f0
@ -141,11 +141,11 @@ export function elementEventFullName(target: string, name: string): string {
|
||||
}
|
||||
|
||||
export function isComponentView(view: ViewData): boolean {
|
||||
return view.component === view.context && !!view.parent;
|
||||
return !!view.parent && !!(view.parentNodeDef.flags & NodeFlags.Component);
|
||||
}
|
||||
|
||||
export function isEmbeddedView(view: ViewData): boolean {
|
||||
return view.component !== view.context && !!view.parent;
|
||||
return !!view.parent && !(view.parentNodeDef.flags & NodeFlags.Component);
|
||||
}
|
||||
|
||||
export function filterQueryId(queryId: number): number {
|
||||
|
Reference in New Issue
Block a user