feat: update scrollToBottom()

This commit is contained in:
SauceyRed 2025-06-07 05:45:06 +02:00
parent ccefc8ca19
commit 2c76edaa32
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
export default (element: Ref<HTMLElement | undefined, HTMLElement | undefined>) => {
if (element.value) {
element.value.scrollTo({ top: element.value.scrollHeight });
export default (element: HTMLElement) => {
if (element) {
element.scrollTo({ top: element.scrollHeight });
return;
}
}