Skip to content

Commit

Permalink
fix(addons/InfoBox): Unmounting an InfoBox should remove all listener…
Browse files Browse the repository at this point in the history
…s. (#412)
  • Loading branch information
tymarats authored and tomchentw committed Apr 20, 2017
1 parent 0a0e1a0 commit ad4f0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/addons/InfoBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default _.flowRight(
componentWillUnmount() {
const infoBox = getInstanceFromComponent(this);
if (infoBox) {
infoBox.setMap(null);
infoBox.close();
}
},

Expand Down

0 comments on commit ad4f0ee

Please sign in to comment.