mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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") {
|
if (event.key === "ArrowUp") {
|
||||||
this.selectKit.highlightLast();
|
this.selectKit.highlightLast();
|
||||||
|
event.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.key === "ArrowDown") {
|
if (event.key === "ArrowDown") {
|
||||||
this.selectKit.highlightFirst();
|
this.selectKit.highlightFirst();
|
||||||
|
event.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user