Skip to content

Commit 4c7d087

Browse files
committed
Merge pull request #111 from cmccand/patch-1
check state before updating value
2 parents 8c7f7a6 + 7b9c018 commit 4c7d087

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

addon/components/x-select.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ export default Ember.Component.extend({
139139
* @utility
140140
*/
141141
_updateValue: function() {
142+
if (this.isDestroying || this.isDestroyed) {
143+
return;
144+
}
145+
142146
if (this.get('multiple')) {
143147
this._updateValueMultiple();
144148
} else {

0 commit comments

Comments
 (0)