Skip to content

Commit

Permalink
fix(ui5-multi-combobox): The initial focus is set on the ui5-dialog (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
niyap authored Jan 22, 2021
1 parent 2c033aa commit aeed733
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/main/src/MultiComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,11 @@ class MultiComboBox extends UI5Element {

const filteredItems = this._filterItems(this.value);
this._filteredItems = filteredItems;

if (isPhone() && this.allItemsPopover && this.allItemsPopover.opened) {
// Set initial focus to the dialog
this.allItemsPopover.focus();
}
}

async onAfterRendering() {
Expand Down

0 comments on commit aeed733

Please sign in to comment.