Skip to content
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

Fix: Error in Ember 3.0 when onDestroy action is sent #258

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

mtgraham
Copy link

Addresses #247

In Ember 3.0, the sendAction method now has an assert in it that checks for this.isDestroyed and this.isDestroying. The willDestroy hook is reached after this.isDestroying is set to true. The hide() method would just return if isDestroying was true, but since we are calling it when it is no longer true, we just check if the element is shown instead.

@mtgraham
Copy link
Author

@sir-dunxalot Can you please give this a look soon? My team is wanting to upgrade to Ember 3.0, but this error is causing our builds to fail.

@DanielOchoa
Copy link

Glad to at least find a quick fix branch, even if the owner has gone awol. Thanks @mattgraham1995

josh-southern added a commit to josh-southern/ember-tooltips that referenced this pull request Jul 24, 2018
josh-southern added a commit to josh-southern/ember-tooltips that referenced this pull request Jul 24, 2018
@maxfierke maxfierke added 3.x ember-tooltips Release series 3.x 2.x ember-tooltips Release series 2.x and removed 3.x ember-tooltips Release series 3.x labels Aug 23, 2018
@maxfierke maxfierke added this to the 2.10.0 milestone Aug 23, 2018
Copy link
Collaborator

@maxfierke maxfierke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:octocat: there's a few other release-blocking issues with Ember 3.x compatibility that I'm looking into, but this is a good step forward. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x ember-tooltips Release series 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants