-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
"Cannot read property 'appendChild' of null" when running integration test with PaperMenu #1151
Comments
I just ran into this same problem. |
It seems that Adding this prevents the error:
I don't know if it's worth a PR |
@miguelcobain the fix @MarcoUmpierrez suggested actually works, seems a bit "hacky", but as the discussion in emberjs/ember.js#18795 is still not resolved. What do you think? |
The 'hacky' option here has allowed me to get our app to 3.20. I'll be referencing this commit directly until we find a better solution: teamtopia@abfdf14 |
@chbonser do you mind creating a PR with your workaround? |
I'll post one this afternoon.
…On Tue, Sep 1, 2020 at 9:56 AM Miguel Andrade ***@***.***> wrote:
@chbonser <https://github.com/chbonser> do you mind creating a PR with
your workaround?
I don't see a good way to solve this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1151 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHZU5WFMRL5DKIYRNYWBULSDUDSZANCNFSM4NMQNDOQ>
.
|
I added the work around. Should be in the next release. Thanks everyone for reporting! |
Please try |
This fix prevent the error in the console but it doesn't fix the problem of the menu appearing magically from the left side of the screen the second time you click on it. To fix it is necessary to specify the parent, that's why I added the line that looks for |
I have a component that renders a PaperMenu component. After running an integration test for my component in which I render the PaperMenu component and click on the trigger, my test suite fails. The source of the issue is that the
animateOut
function in PaperMenu::Content the element doesn't have a "parentElement" and the function crashes at the end of the test. I've tried unsuccessfully to find a way to destroy the PaperMenu gracefully.Ember version: 3.18
Ember Paper version: 1.0.0-beta.30
My component:
My test:
A quick fix would be to simply return early in the
animateOut
if a parentElement isn't found on the givenelement
The text was updated successfully, but these errors were encountered: