Skip to content

Commit

Permalink
feat: scroll to bottom of Chatbox when Sidebar is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRoytman committed Aug 21, 2023
1 parent 5ae402c commit d602f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Sidebar = ({
requestAnimationFrame(scroll);
}
}
}, [messageList]);
}, [messageList, isOpen]);

const handleClick = () => {
setIsOpen(false);
Expand Down

0 comments on commit d602f1a

Please sign in to comment.