-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Append portal node to container instead of prepend #1971
Conversation
This fixes the issue described in preactjs#1806. Expected test outcomes were generated by taking the test code and running it with React instead of Preact.
@@ -452,6 +452,6 @@ describe('Portal', () => { | |||
|
|||
toggle(); |
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.
For sanity's sake could you duplicate this test with <Modal open={open}>Hello</Modal>
as firstChild, I remember trying to avoid append
for some reason if that works out I'll test something myself and else approve the PR
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.
Added the test
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.
Looks good to me, thanks for taking your time to tackle this
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.
Looks good on my end 👍 Thank you so much for the PR 🎉
* Append portal node to container instead of prepend This fixes the issue described in #1806. Expected test outcomes were generated by taking the test code and running it with React instead of Preact. * Add additional test for portals testing ordering
This fixes the issue described in #1806. Expected test outcomes were
generated by taking the test code and running it with React instead of
Preact.