mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +08:00
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")
|
||||
_destroy() {
|
||||
if (this._picker) {
|
||||
this._picker.destroy();
|
||||
}
|
||||
this._picker = null;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user