Skip to content

Commit

Permalink
Removed highlights when featuregrid disappears
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto committed Jan 11, 2017
1 parent 6a4a1b3 commit 0f9b13d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/client/components/data/featuregrid/DockedFeatureGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ const DockedFeatureGrid = React.createClass({
this.featureLoaded.successCallback(rowsThisPage, nextProps.totalFeatures);
}
}
if ((this.props.columnsDef && !nextProps.columnsDef) || (this.props.filterObj && !nextProps.filterObj)) {
this.props.selectFeatures([]);
this.props.selectAllToggle();
}
},
componentDidUpdate(prevProps) {
if (!this.props.loadingGrid && !this.featureLoaded && !this.props.pagination && this.props.searchUrl) {
Expand Down

0 comments on commit 0f9b13d

Please sign in to comment.