Skip to content

Commit 721b151

Browse files
heloiseluiannawen1
andauthored
fix(overflow-menu): prevent arrow keys from scrolling page (#19556)
Co-authored-by: Anna Wen <[email protected]>
1 parent 14bfc22 commit 721b151

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/web-components/src/components/overflow-menu/overflow-menu-body.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class CDSOverflowMenuBody extends CDSFloatingMenu {
111111
}
112112

113113
if (key in NAVIGATION_DIRECTION) {
114+
event.preventDefault();
114115
this._navigate(NAVIGATION_DIRECTION[key]);
115116
}
116117

0 commit comments

Comments
 (0)