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): DebugElement.query when there is a node outside Angular context #32361
Conversation
ddcd5fe
to
9aa78cb
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.
Excellent :)
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.
Some minor nits
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
…ontext DebugElement.query also searches elements that may have been created outside of Angular (ex: with `document.appendChild`). The current behavior attempts to get the LContext of these nodes but throws an error because the LContext does not exist.
…ontext (angular#32361) DebugElement.query also searches elements that may have been created outside of Angular (ex: with `document.appendChild`). The current behavior attempts to get the LContext of these nodes but throws an error because the LContext does not exist. PR Close angular#32361
…ontext (angular#32361) DebugElement.query also searches elements that may have been created outside of Angular (ex: with `document.appendChild`). The current behavior attempts to get the LContext of these nodes but throws an error because the LContext does not exist. PR Close angular#32361
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. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Ivy throws an error when using DebugElement.query on node where a child was added with document.appendChild
Issue Number: N/A
What is the new behavior?
No error is thrown
Does this PR introduce a breaking change?