Skip to content

Commit

Permalink
fix(ui5-select): prevent select from scrolling when changing selectio…
Browse files Browse the repository at this point in the history
…n with arrows (#588)
  • Loading branch information
fifoosid authored Jun 26, 2019
1 parent 912562a commit bed0556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/main/src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ class Select extends UI5Element {
const isUpKey = isUp(event);

if (isDownKey || isUpKey) {
event.preventDefault();
if (isDownKey) {
nextIndex = this._getNextOptionIndex();
} else {
Expand Down

0 comments on commit bed0556

Please sign in to comment.