Skip to content

Commit 18362b5

Browse files
authored
Make the auto scroll code run again (#2)
signavio#628
2 parents 2ac1820 + b1569d7 commit 18362b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SuggestionsOverlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function SuggestionsOverlay({
5050
} else if (bottom > ulElement.offsetHeight) {
5151
ulElement.scrollTop = bottom - ulElement.offsetHeight
5252
}
53-
}, [])
53+
}, [focusIndex])
5454

5555
const renderSuggestions = () => {
5656
const suggestionsToRender = Object.values(suggestions).reduce(

0 commit comments

Comments
 (0)