Added cleanup of emoji picker

no issue

- housekeeping when the callout card component is destroyed
This commit is contained in:
Kevin Ansfield 2021-11-18 18:56:13 +00:00
parent d1e1c8b11c
commit 9655b76610

View File

@ -95,6 +95,11 @@ export default class KoenigCardCalloutComponent extends Component {
}); });
} }
willDestroy() {
super.willDestroy(...arguments);
this.picker.destroyPicker();
}
// required for snippet rects to be calculated - editor reaches in to component, // required for snippet rects to be calculated - editor reaches in to component,
// expecting a non-Glimmer component with a .element property // expecting a non-Glimmer component with a .element property
@action @action