forked from rDrama/rDrama
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
commit
18a5bc6108
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "chat",
|
"name": "chat",
|
||||||
"version": "0.0.21",
|
"version": "0.0.22",
|
||||||
"main": "./src/index.tsx",
|
"main": "./src/index.tsx",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -58,6 +58,13 @@ function AppInner() {
|
||||||
contentWrapper.current.scrollTop = contentWrapper.current.scrollHeight;
|
contentWrapper.current.scrollTop = contentWrapper.current.scrollHeight;
|
||||||
}
|
}
|
||||||
}, [messages]);
|
}, [messages]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!open) {
|
||||||
|
// Scroll to the bottom after any drawer closes.
|
||||||
|
contentWrapper.current.scrollTop = contentWrapper.current.scrollHeight;
|
||||||
|
}
|
||||||
|
}, [open]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="App" ref={dropRef}>
|
<div className="App" ref={dropRef}>
|
||||||
|
|
Loading…
Reference in New Issue