-
Notifications
You must be signed in to change notification settings - Fork 0
Fixed state not being reset to correct value when transitioning out #1
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
Conversation
2f3c4a7 to
65fa846
Compare
| parentElement = parentElement.parentElement | ||
| parentElement = parentElement.parentElement; | ||
|
|
||
| if (isTesting() && parentElement === null) { |
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.
Not sure exactly why but will-destroy modifier (https://github.com/cibernox/ember-basic-dropdown/blob/master/addon/templates/components/basic-dropdown-content.hbs#L30) is getting called in the template after the parent node has been removed from the DOM. Looks like it's only related to Test env.
Related Issues:
emberjs/ember.js#18795
1434264 to
db1268b
Compare
|
Looks like this is still failing... |
e8c5f37 to
06c3828
Compare
06c3828 to
fa746c5
Compare
This is already opened pr on this Issue cibernox#623
Hopefully Fixes cibernox#615 🤞
but i am not sure we should make any changes on this code (https://github.com/cibernox/ember-basic-dropdown/pull/623/files#diff-5eb8bde405ea618cba05ea05b9898dc60ff96ac459a953c279fbb24f39a46f81L128-L132), cause on production code it works good, the only problem with tests, so i made a workaround for testing purpose. Any idea how to fix this issue better, very welcome.
The transitioning--in etc classes don't get reset after the first render. When the dropdown content first renders, it animates correctly, but on subsequent renders there is no animation - cause state not being reset to correct value.
Looks like it was broken here in this commit, so idea to revert back and cover with tests:
cibernox@1819c01#diff-73297f8c71645544a2a6826e5c3146aff7cb2333d9c17fe968258e5f14dc4a79R164