Quantcast
Viewing all articles
Browse latest Browse all 229962

scrollIntoView on item in list leads to a chroot-jail like experience

I have an ion-nav-view containing ion-content and then a list of items. Based on some user action, I want to bring a list item into the view. But when I use scrollIntoView() on the DOM element, I can never scroll up to list items before that. (Sort of, like a chroot-jail)

I noticed that this method is marked experimental at MDN but also caniuse shows support. So what I am missing in this? Is there an alternative way?

Thanks


Viewing all articles
Browse latest Browse all 229962

Trending Articles