Skip to content

Commit

Permalink
chore :: 자동 스크롤
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Aug 20, 2024
1 parent 6801393 commit 0f8b74d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/Team/deploy/Container/Detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export const TeamDeployContainerDetail = () => {

useEffect(() => {
setLog(messages);
if (logInnerContainerRef.current) {
const { current: logInnerContainer } = logInnerContainerRef;
requestAnimationFrame(() => {
logInnerContainer.scrollTop = logInnerContainer.scrollHeight;
});
}
// if (logInnerContainerRef.current) {
// const { current: logInnerContainer } = logInnerContainerRef;
// requestAnimationFrame(() => {
// logInnerContainer.scrollTop = logInnerContainer.scrollHeight;
// });
// }
}, [messages]);

return (
Expand Down

0 comments on commit 0f8b74d

Please sign in to comment.