Scroll console to bottom bug fixed

This commit is contained in:
ghsuvr123 2020-08-16 14:41:15 +03:00
parent 236cdac7ed
commit 2510f679b8
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ const Console = () => {
}, [theme, fontSize]);
const cm = useRef({});
const scrollConsoleDown = () => { cm.current.scrollTop = cm.current.scrollHeight; console.log('scroll'); };
scrollConsoleDown();
const consoleClass = classNames({
'preview-console': true,