Skip to content

Commit 0c7e58b

Browse files
authored
fix(ui5-list): prevent scrolling with space (#3272)
Prevent default behavior of the keydown event when SPACE key is pressed, to avoid scrolling of the page. Part of: #3089
1 parent a3a3a11 commit 0c7e58b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/main/src/List.js

+3
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,9 @@ class List extends UI5Element {
672672
}
673673

674674
_onkeydown(event) {
675+
if (isSpace(event)) {
676+
event.preventDefault(); // prevent scroll
677+
}
675678
if (isTabNext(event)) {
676679
this._handleTabNext(event);
677680
}

0 commit comments

Comments
 (0)