Skip to content

Commit

Permalink
fix(ui5-multi-combobox): Prevent scrolling on page up/down (#4835)
Browse files Browse the repository at this point in the history
* Prevent scrolling on page up/down in the Multi Combobox

* Remove redundant imports
  • Loading branch information
ndeshev authored and ilhan007 committed Mar 2, 2022
1 parent b04db63 commit 6c85e8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/main/src/MultiComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,14 @@ class MultiComboBox extends UI5Element {
this[`_handle${event.key}`] && this[`_handle${event.key}`](event);
}

_handlePageUp(event) {
event.preventDefault();
}

_handlePageDown(event) {
event.preventDefault();
}

_handleBackspace(event) {
if (event.target.value === "") {
event.preventDefault();
Expand Down

0 comments on commit 6c85e8d

Please sign in to comment.