Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll in browser. #70

Open
arpitpsm1 opened this issue Aug 16, 2018 · 3 comments
Open

Scroll in browser. #70

arpitpsm1 opened this issue Aug 16, 2018 · 3 comments

Comments

@arpitpsm1
Copy link

When I press Up OR Down arrow browser gets scroll to selected item in list.
I do not know this is feature or not. But if we can handle this it will better.

@Ephs05msm
Copy link

Looks like the behavior is handled here: https://github.com/paliari/v-autocomplete/blob/master/src/Autocomplete.vue#L122.

It's a jarring effect in many cases. An option to disable this would be helpful. Thoughts?

@paliari, if you need help I'm happy to open a PR for this. I see a number of PRs open for months so I'm wondering where this stands. Thanks.

@Flaburgan
Copy link

On my project, when an item is focused with the keyboard, the screen scrolls to align it at the bottom. I personally find this very weird and indeed, a fix would be very nice.

@PeterSchuhmannNetflow
Copy link

Since there is no option to deactivate that feature the only option i see to disable it from the outside will be to override the intoView function of the item, like this:

HTMLElement.prototype.scrollIntoView = function() {};

Side effect: this will disable the function entirely that means it does not work for other items on your page.

In my case the autocomplete component will only be triggered on one page therefor i can accept that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants