Skip to content

Commit

Permalink
guard against __setDefaultValues being called during teardown (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaulagiri authored and Robdel12 committed Sep 16, 2016
1 parent 1680b9b commit da7f304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/components/x-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ export default Ember.Component.extend({
},

__setDefaultValues: function() {
if (this.get('value') == null) {
const canSet = !this.isDestroying && !this.isDestroyed;
if (canSet && this.get('value') == null) {
this.sendAction('action', this._getValue());
}
},
Expand Down

0 comments on commit da7f304

Please sign in to comment.