Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 32ff902

Browse files
committed
Merge pull request #114 from facebook/scroll-bug
fixes #112; scroll + hover bug
2 parents 382b519 + dc58da2 commit 32ff902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/Node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class Node {
5050
}
5151
}
5252

53-
componentDidUpdate() {
54-
if (this.props.selected) {
53+
componentDidUpdate(prevProps) {
54+
if (this.props.selected && !prevProps.selected) {
5555
this.ensureInView();
5656
}
5757
}

0 commit comments

Comments
 (0)