From f4d24580cdbcf29776c6db7b03fd92901e311ad4 Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Mon, 9 Sep 2019 20:12:58 -0600 Subject: [PATCH] [Maps] unmount map embeddable component on destroy (#45183) --- .../legacy/plugins/maps/public/embeddable/map_embeddable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/legacy/plugins/maps/public/embeddable/map_embeddable.js b/x-pack/legacy/plugins/maps/public/embeddable/map_embeddable.js index 41ae4b8e36cca..d7f07d535b160 100644 --- a/x-pack/legacy/plugins/maps/public/embeddable/map_embeddable.js +++ b/x-pack/legacy/plugins/maps/public/embeddable/map_embeddable.js @@ -119,13 +119,15 @@ export class MapEmbeddable extends Embeddable { this._dispatchSetQuery(this.input); this._dispatchSetRefreshConfig(this.input); + this._domNode = domNode; + render( , - domNode + this._domNode ); this._unsubscribeFromStore = this._store.subscribe(() => {