feat: update scrollToBottom()
This commit is contained in:
parent
4679b3658c
commit
59a6759bba
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue