-
Notifications
You must be signed in to change notification settings - Fork 28
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
Clones are not torn down in Ember 2.3.2 #11
Comments
I released now 0.1.5. |
@miguelcobain This is still happening I am using ember-paper with the last alpha version and it still happening with the paper-dialog component, I have tried to find where/how the problem originates but I haven't yet, do you have any idea where it could be? If you give me a hint maybe I could help you solve that! |
I think I found the problem, ember-wormhole uses two text nodes to identify what elements to delete, but the cloned element is inserted outside those elements created by the wormhole addon and that might be why they are not being deleted, just an hypothesis I need to prove it now! 🤓 |
This is what happens now, the last element is the cloned one, but it should not be! The last element should be the text node in position 7 which was created by the wormhole, and that is the problem (I hope) I don't know who's concern should be this problem, if from this addon or the wormhole addon 🤔 , what do you think? |
@fedekau does this happen in all browsers? |
@miguelcobain It happens on Chrome and Firefox, in Safari I couldn't reproduce the problem. I am using the last stable version of each browser. |
@fedekau Very strange. This test is passing on Chrome for me: https://github.com/peec/ember-css-transitions/blob/master/tests/integration/components/transition-group-test.js#L48 Do you see that bug in latest ember-paper's docs? |
@miguelcobain It don't see the bug there, I will try to update an example where it fails so you can see it! Thanks for the time :) |
A failing test or some way of reproducing the bug would help immensely. |
@miguelcobain I took a look at the problem again and I am not sure if what I previously said is valid (about the clone not being deleted), anyway here is an example app ember-css-transitions-bug To reproduce it:
This will add an element to the document every time you do the steps 3 & 4 Let me know if you can see the problem, and if you need help to fix it! |
@fedekau The problem isn't in ember-css-transitions. ember-css-transitions once had this problem, but then I fixed it in #15. In fact, I kept note that this bug might happen in adopted-ember-addons/ember-paper#249:
tl;dr transitionend events are useless and buggy. |
Thanks for taking the time to explain that @miguelcobain! |
When using either the mixin or the component version, the teardown removes the component but not the DOM clone, leaving a copy behind each time something like a toggle happens.
The text was updated successfully, but these errors were encountered: