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 not working using key up/down #57

Open
max-SS opened this issue Sep 14, 2016 · 5 comments
Open

scroll not working using key up/down #57

max-SS opened this issue Sep 14, 2016 · 5 comments

Comments

@max-SS
Copy link

max-SS commented Sep 14, 2016

Hello I wonder if the option of using the arrow keys up/down in case there scroll, are supported to move. Why me not working me...

@hakib
Copy link
Owner

hakib commented Sep 16, 2016

Hey @max-SS, not sure I never had very long lists :)

I suspect that scrolling a list might require setting the focus to the list item (which might pose a problem). Can you set up a plunkr/jsbin to demonstrate the issue?

@max-SS
Copy link
Author

max-SS commented Sep 16, 2016

yes. I share here a fork of an example, I added the displacement

http://plnkr.co/edit/ZKKtYaeW0TpFt7Tij9Fm?p=preview

@hakib
Copy link
Owner

hakib commented Sep 17, 2016

I see the problem. As I suspected it wont be possible because scrolling require settings focus to the selected item - this conflicts with how the directive work.

In order for the directive to be "global" we trigger attach on focus and detach on blur.Once we move the focus to the selected element a blur event will be triggered on the input element and a detach event will follow.

@gowrisankarreddy
Copy link

I am also facing same issues could u please help me to fix

@hakib
Copy link
Owner

hakib commented Jun 7, 2017

Hey, see the explination above about the scrolling "challenge".

I think that if you have very long lists you should look into ways of making it smaller rather then tackle the scrolling issue. For example you can require more letters before making a suggestion, sort results by relevance and limit results etc.

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

3 participants