Skip to content

Commit

Permalink
remove event manager properly on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Jul 15, 2019
1 parent c9daf7f commit 2b37d23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/interactive-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ export default class InteractiveMap extends PureComponent<InteractiveMapProps, S
}
}

componentWillUnmount() {
this._eventManager.destroy();
}

_controller: MapController;
_eventManager: any;
_interactiveContext: MapContextProps;
Expand Down

0 comments on commit 2b37d23

Please sign in to comment.