Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Typeahead scroll to selected element with overflow #5023

Open
Duskfall opened this issue Dec 7, 2015 · 2 comments
Open

Typeahead scroll to selected element with overflow #5023

Duskfall opened this issue Dec 7, 2015 · 2 comments

Comments

@Duskfall
Copy link

Duskfall commented Dec 7, 2015

Also commented here

Downloaded and built the master repo (1.0 snapshot version ) and while the issue is fixed with keyboard-nav there is another bug left.

Scenario.

  1. Have multiple suggestions available.
  2. Suggestions must be the same, at least in the first letters which are typed. The rest characters are irrelevant
  3. Define height with overflow scroll that is smaller than the total suggestions.
  4. Scroll down to a suggestion and mouse over it or do the same with the keyboard
  5. Type the letter sequence which exists in every/almost every suggestion in the list.

Typeahead should focus the first suggestion and scroll to that suggestion but it doesn't.
Demo:
http://codepen.io/Duskfall/pen/adowpL

For the demo to reproduce:
Type "t"
Scroll down
Type "e"
You can see the problem

@wesleycho
Copy link
Contributor

This seems like a legitimate issue - on update, perhaps we need to focus the first choice.

@deeg
Copy link
Contributor

deeg commented Jan 13, 2016

I plan on putting out a PR for this in the next few days.

deeg added a commit to deeg/bootstrap that referenced this issue Jan 18, 2016
deeg added a commit to deeg/bootstrap that referenced this issue Jan 18, 2016
@wesleycho wesleycho modified the milestone: 1.2.3 Mar 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants