(prevProps)
| 70 | } |
| 71 | |
| 72 | componentDidUpdate(prevProps) { |
| 73 | if (this.props.match.params.keyId !== prevProps.match.params.keyId) { |
| 74 | this.setState({activeKey: this.props.match.params.keyId}); |
| 75 | } |
| 76 | this.scrollToKey(); |
| 77 | } |
| 78 | |
| 79 | scrollToKey() { |
| 80 | if (this.state.activeKey && this.rowRefs[this.state.activeKey]) { |