-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ivy): incorrectly remapping certain properties that refer to inputs #28765
Conversation
1d15c94
to
72b47b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me, just needs some test updates
0fad6b8
to
6ed7120
Compare
@kara I've switched the tests over to |
packages/compiler-cli/test/compliance/r3_view_compiler_template_spec.ts
Outdated
Show resolved
Hide resolved
6ed7120
to
a93eef3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crisbeto Just realized that this PR should fix a number of Material tests, but we're not actually removing anything from the blocklist. Can you remove the relevant tests?
Updated @kara. It also has two new bonus failures that are due to static queries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the changes in tools/material-ci/angular_material_test_blocklist.js
(the ones I assumed triggered the angular/fw-dev-infra
review).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though it needs a rebase
1f42206
to
2fa5e34
Compare
It's rebased @kara. |
This comment has been minimized.
This comment has been minimized.
2fa5e34
to
3c90e61
Compare
CLAs look good, thanks! Googlers can find more info about SignCLA and this PR by following this link. |
3c90e61
to
980a879
Compare
During build time we remap particular property bindings, because their names don't match their attribute equivalents (e.g. the property for the `for` attribute is called `htmlFor`). This breaks down if the particular element has an input that has the same name, because the property gets mapped to something invalid. The following changes address the issue by mapping the name during runtime, because that's when directives are resolved and we know all of the inputs that are associated with a particular element.
980a879
to
424407a
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
During build time we remap particular property bindings, because their names don't match their attribute equivalents (e.g. the property for the
for
attribute is calledhtmlFor
). This breaks down if the particular element has an input that has the same name, because the property gets mapped to something invalid.The following changes address the issue by mapping the name during runtime, because that's when directives are resolved and we know all of the inputs that are associated with a particular element.