Scroll console to bottom bug fixed
This commit is contained in:
parent
236cdac7ed
commit
2510f679b8
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue