mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
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…
x
Reference in New Issue
Block a user