Skip to content

Commit

Permalink
fix(ui5-select): prevent scrolling on Space (#1418)
Browse files Browse the repository at this point in the history
FIXES: #1412
  • Loading branch information
ilhan007 committed Apr 3, 2020
1 parent f6c46be commit fb500fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/main/src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ class Select extends UI5Element {
this._toggleRespPopover();
}

if (isSpace(event)) {
event.preventDefault();
}

if (!this._isPickerOpen) {
this._handleArrowNavigation(event, true);
}
Expand Down

0 comments on commit fb500fc

Please sign in to comment.