FIX: Prevent layout shift while traversing dropdown (#18624)
This commit is contained in:
parent
3a204f72d3
commit
1b22ff461b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue