Directive matching with attr.
is not working with Ivy
#38512
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
area: core
Issues related to the framework runtime
core: directive matching
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
state: confirmed
Milestone
馃悶 bug report
Affected Package
The issue affects the @angular/core/Directive when Ivy is enabled on the project.
Is this a regression?
Yes, the previous version in which this bug was not present was: 7.2.15. When Ivy is disabled in Angular 9.x and 10.x the issue is also not present.Description
We have a directive with two selectors[data-dl],[attr.data-dl]
that creates a mousedown event on the HTML element. When Ivy is enabled on the project, theattr.data-dl
version of the directive does not properly fire the mousedown event while justdata-dl
does fire correctly.馃敩 Minimal Reproduction
Right click on the links in the projects below to see the message being logged to the console.
馃敟 Exception or Error
No Exception
馃實 Your Environment
Angular Version:
9.1.12
Anything else relevant?
Seems to be broken uniformly across all browsers and operating systems from what we have seen.
The text was updated successfully, but these errors were encountered: