Skip to content

Commit 2510f67

Browse files
committed
Scroll console to bottom bug fixed
1 parent 236cdac commit 2510f67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/modules/IDE/components/Console.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ const Console = () => {
8787
}, [theme, fontSize]);
8888

8989
const cm = useRef({});
90+
const scrollConsoleDown = () => { cm.current.scrollTop = cm.current.scrollHeight; console.log('scroll'); };
91+
scrollConsoleDown();
9092

9193
const consoleClass = classNames({
9294
'preview-console': true,

0 commit comments

Comments
 (0)