JustGoscha / allmighty-autocomplete

Simple to use autocomplete directive in a module for AngularJs!
MIT License
392 stars 232 forks source link

Feature Request: Adding up down key scrolling for ARIA support #58

Open mehtaad opened 10 years ago

mehtaad commented 10 years ago

Is it possible to add up down key scrolling of ng repeat list? If you limit the size of of un ordered list block to height of say 300px with overflow set to auto it does add a vertical scroll bar to drop down list. Mouse scrolling works fine and list gets updated as you scroll mouse but if you try with keyboard up or down arrow key it does not scroll list view past the end boundaries.

shp2015 commented 7 years ago

Add this at line no 191 and then 207. angular.element(this).find('li')[index].scrollIntoView();