Merge branch 'werk' into dev_environment
This commit is contained in:
commit
462409f2f4
1 changed files with 3 additions and 3 deletions
|
|
@ -24,11 +24,11 @@ export default function ChatOutput(props: Props) {
|
||||||
|
|
||||||
const ScrollToBottom = () => {
|
const ScrollToBottom = () => {
|
||||||
const elementRef = useRef<null | HTMLDivElement>(null);
|
const elementRef = useRef<null | HTMLDivElement>(null);
|
||||||
useEffect(() =>
|
useEffect(() => {
|
||||||
elementRef?.current?.scrollIntoView({
|
elementRef?.current?.scrollIntoView({
|
||||||
block: "end"
|
block: "end"
|
||||||
})
|
});
|
||||||
);
|
});
|
||||||
let elem = <div ref={elementRef} />;
|
let elem = <div ref={elementRef} />;
|
||||||
return elem;
|
return elem;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue