FIX: Prevent layout shift while traversing dropdown (#18624)

This commit is contained in:
Keegan George 2022-10-17 11:40:03 -07:00 committed by GitHub
parent 3a204f72d3
commit 1b22ff461b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -83,11 +83,13 @@ export default Component.extend(UtilsMixin, {
if (event.key === "ArrowUp") {
this.selectKit.highlightLast();
event.preventDefault();
return false;
}
if (event.key === "ArrowDown") {
this.selectKit.highlightFirst();
event.preventDefault();
return false;
}