Skip to content

Commit

Permalink
refactor(igxCombo): first header is not loaded and focus search - scr…
Browse files Browse the repository at this point in the history
…oll, #2999
  • Loading branch information
ViktorSlavov committed Nov 13, 2018
1 parent d2e32a0 commit ea6ae05
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ export class IgxComboDropDownComponent extends IgxDropDownBase implements OnDest
const addedIndex = allData[targetDataIndex].isHeader ? this.findNextFocusableItem(targetDataIndex, Navigate.Up, allData) : 0;
targetDataIndex -= addedIndex; // Add steps to targetDataIndex
if (addedIndex === -1) { // If there is no non-header
vContainer.scrollTo(0);
this.focusComboSearch(); // Focus combo search;
} else {
this.subscribeNext(vContainer, () => {
Expand Down

0 comments on commit ea6ae05

Please sign in to comment.