Smoothing scroll of edit modal.

This commit is contained in:
Roland 2023-05-03 09:01:25 -06:00
parent fe5a1c44a1
commit cff0c20007
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 10 additions and 2 deletions

View file

@ -359,6 +359,13 @@ export function scrollToTop() {
});
}
export function scrollToTopOfElement(element, smooth=true) {
element.scroll({
top: 0,
behavior: smooth ? 'smooth' : 'auto',
});
}
export function SearchInput({
searchStr,
onSubmit,