Skip to content

Commit

Permalink
🐛 Fix ListBox scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Apr 10, 2020
1 parent bc4cfec commit 05f2f1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/js/components/ListBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ const ListBox = ({
useEffect(() => {
if (toScroll) {
if (direction === 'vertical') {
root.scrollTop = root.scrollHeight;
root.current.scrollTop = root.current.scrollHeight;
} else {
root.scrollLeft = root.scrollWidth;
root.current.scrollLeft = root.current.scrollWidth;
}
setToScroll(false);
}
Expand Down

0 comments on commit 05f2f1f

Please sign in to comment.