mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Smoothing scroll of edit modal.
This commit is contained in:
parent
fe5a1c44a1
commit
cff0c20007
2 changed files with 10 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue