vuejs-autocomplete
vuejs-autocomplete copied to clipboard
Please add auto scroll
When a list is big and you navigating by arrows active element should be visible I propose you to use scrollIntoView
activeElement.scrollIntoView(false);
That is an interesting method that I'd not seen before. Although MDN says it's experimental - caniuse shows fairly decent support. There is an open PR for this case - https://github.com/charliekassel/vuejs-autocomplete/pull/37 @richardkmichael what do you think about this?
@charliekassel Funny timing.. I just discovered scrollIntoView() myself a few days ago, and was considering rewriting #37 again, because certainly it's much simpler. :-) However, MDN indicates Safari doesn't support the options object. I was going to experiment to be sure it isn't necessary.
I would imagine that the Boolean param is all we need.
Seems likely, yes. I'll see if I can get to it today, might be the weekend.
I would love to see this happen.