Scroll console to bottom bug fixed

This commit is contained in:
ghsuvr123 2020-08-16 14:41:15 +03:00
parent 236cdac7ed
commit 2510f679b8

View file

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