-
Notifications
You must be signed in to change notification settings - Fork 2
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
CPLAT-15997 Scope Queries to the Body Element #37
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
/*ReactDomComponentFactoryProxy*/ dynamic rootElem, | ||
List<_FormElemDefinition> els) { |
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.
These are formatting changes.. I'm not sure why they're there (I formatted on 2.13.4). The only real change is in render.dart
and then any test files
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.
+1
We might want to run some consumer tests before releasing this, since I think there's some risk that this behavior change could introduce some test failures.
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.
+1 / Semver +1
QA +1 |
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.
+1
@Workiva/release-management-pp |
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.
+1 from RM
Motivation
I ran into an issue where I needed to query a portal that was attached directly to the
document.body
rather than inside of RTL'scontainer
. Doing research revealed that this should work out of the box because queries are bound to the document.body by default. We were doing things slightly differently by binding queries to the render result's container, preventing us from being able to access portals like the library anticipates. This PR tweaks that to align with the JS side!Changes
baseElement
instead ofcontainer
Release Notes
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
QA Checklist
Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: