Skip to content

Commit 6f125b4

Browse files
committed
fix: prevent first dropdown item from scrolling out of view on initial arrow down
Signed-off-by: Akshat Patel <akshat@live.ca>
1 parent f85fa3f commit 6f125b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combobox/combobox.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
567567
this.closeDropdown();
568568
} else if ((ev.key === "ArrowDown")
569569
&& (!this.dropdownMenu || !this.dropdownMenu.nativeElement.contains(ev.target))) {
570-
ev.stopPropagation();
570+
ev.preventDefault();
571571
this.openDropdown();
572572
setTimeout(() => { this.view.initFocus(); }, 0);
573573
}

0 commit comments

Comments
 (0)