Skip to content

Commit

Permalink
fix(OverlayView): redraw only when props.mapPaneName changes
Browse files Browse the repository at this point in the history
* Closed #147
* Closes #148
* Original author: @sergiu-paraschiv
* Original commit: 0c0f6a6
  • Loading branch information
tomchentw committed Nov 18, 2015
1 parent e9f72f1 commit ff4473d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creators/OverlayViewCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class OverlayViewCreator extends Component {

componentDidUpdate (prevProps) {
this.getOverlayView().setValues(this.props);
this.getOverlayView()._redraw(this.props.mapPaneName !== prevProps);
this.getOverlayView()._redraw(this.props.mapPaneName !== prevProps.mapPaneName);
}

componentWillUnmount () {
Expand Down

0 comments on commit ff4473d

Please sign in to comment.