Replies: 1 comment
|
To make my scroll-to-the-top hack work with forms, I can use input {
onkeyup: move |_| {
reset.set(true);
},
onkeydown: move |_| {
reset.set(false);
},
onfocusout: move |_| {
submit_data();
}
// ... further code ...
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I played around with VirtualList and I coudn't find out a way to scroll to a specified element.
I managed to hack a go-to-the-top by setting the length of the virtual list to zero and back to the original value by leveraging
onmousedownandonmouseup(see code below).Is there a better way to do that and if not, is there a better way that my hack works with
onsubmitwhen using forms?edit: The hack works with forms now.
Best wishes
Luci
All reactions