fix(ivy): host listeners being inherited twice (#28902)
Fixes inherited host event listeners being registered twice. This PR resolves FW-1071. PR Close #28902
This commit is contained in:

committed by
Ben Lesh

parent
9dac04ff50
commit
43181ea568
@ -63,7 +63,8 @@ export function compileComponent(type: Type<any>, metadata: Component): void {
|
||||
preserveWhitespaces: metadata.preserveWhitespaces || false,
|
||||
styles: metadata.styles || EMPTY_ARRAY,
|
||||
animations: metadata.animations,
|
||||
viewQueries: extractQueriesMetadata(type, getReflect().propMetadata(type), isViewQuery),
|
||||
viewQueries:
|
||||
extractQueriesMetadata(type, getReflect().ownPropMetadata(type), isViewQuery),
|
||||
directives: [],
|
||||
changeDetection: metadata.changeDetection,
|
||||
pipes: new Map(),
|
||||
@ -138,7 +139,7 @@ export function extendsDirectlyFromObject(type: Type<any>): boolean {
|
||||
*/
|
||||
function directiveMetadata(type: Type<any>, metadata: Directive): R3DirectiveMetadataFacade {
|
||||
// Reflect inputs and outputs.
|
||||
const propMetadata = getReflect().propMetadata(type);
|
||||
const propMetadata = getReflect().ownPropMetadata(type);
|
||||
|
||||
return {
|
||||
name: type.name,
|
||||
|
Reference in New Issue
Block a user