feat: update scrollToBottom()

This commit is contained in:
SauceyRed 2025-06-07 05:45:06 +02:00
parent 4679b3658c
commit 59a6759bba
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;
}
}