vuejs-autocomplete icon indicating copy to clipboard operation
vuejs-autocomplete copied to clipboard

Please add auto scroll

Open shubich opened this issue 7 years ago • 5 comments

When a list is big and you navigating by arrows active element should be visible I propose you to use scrollIntoView

activeElement.scrollIntoView(false);

shubich avatar May 09 '18 13:05 shubich

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 avatar May 09 '18 18:05 charliekassel

@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.

richardkmichael avatar May 09 '18 20:05 richardkmichael

I would imagine that the Boolean param is all we need.

charliekassel avatar May 10 '18 07:05 charliekassel

Seems likely, yes. I'll see if I can get to it today, might be the weekend.

richardkmichael avatar May 10 '18 13:05 richardkmichael

I would love to see this happen.

danimalweb avatar Oct 18 '19 01:10 danimalweb