auto scrolling working!

This commit is contained in:
Luke Berndt
2021-02-11 21:54:38 -05:00
parent 6f7b86f0cb
commit 25b953d58d
18 changed files with 86 additions and 193 deletions

View File

@@ -35,11 +35,11 @@ handleDone(event) {
}
}
componentWillUpdate(nextProps) {
componentDidUpdate(prevProps) {
const filterChanged = (nextProps.selectedGroup !== this.props.selectedGroup);
const filterChanged = (prevProps.selectedGroup !== this.props.selectedGroup);
if (filterChanged) {
this.setState({ selectedGroup: nextProps.selectedGroup});
this.setState({ selectedGroup: this.props.selectedGroup});
}
}