FIX: destroy picker if it was loaded
This commit is contained in:
parent
e0695b02d9
commit
f6c35e5abc
|
@ -36,6 +36,9 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
@on("willDestroyElement")
|
@on("willDestroyElement")
|
||||||
_destroy() {
|
_destroy() {
|
||||||
|
if (this._picker) {
|
||||||
|
this._picker.destroy();
|
||||||
|
}
|
||||||
this._picker = null;
|
this._picker = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue