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

Commit dc58da2

Browse files
committed
fixes #112; scroll + hover bug
1 parent 8e3e128 commit dc58da2

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)