FIX: destroy picker if it was loaded

This commit is contained in:
Sam 2018-05-17 11:18:04 +10:00
parent e0695b02d9
commit f6c35e5abc
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ export default Ember.Component.extend({
@on("willDestroyElement")
_destroy() {
if (this._picker) {
this._picker.destroy();
}
this._picker = null;
},