Skip to content

Commit

Permalink
fix: update condition isDestroying
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpereznext authored and josex2r committed Dec 21, 2021
1 parent 5c73504 commit ceeff26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const isNotDestroyed = (target, key, descriptor) => {

descriptor.value = function(...args) {
// istanbul ignore if: lifecycle check.
if (this.isDestroyed) {
if (this.isDestroyed || this.isDestroying) {
return null;
}

Expand Down

0 comments on commit ceeff26

Please sign in to comment.