In <ContactPills>, use new "scrollToBottom" helper
This commit is contained in:
parent
a2071d9fa6
commit
934e0fa415
4 changed files with 62 additions and 6 deletions
8
ts/util/scrollToBottom.ts
Normal file
8
ts/util/scrollToBottom.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function scrollToBottom(el: HTMLElement): void {
|
||||
// We want to mutate the parameter here.
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
el.scrollTop = el.scrollHeight;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue