Skip to content

Commit bab54f6

Browse files
authored
fix(ui5-input): Behaviour on mobile device enhanced (#4025)
1 parent 9101130 commit bab54f6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/main/src/Input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ class Input extends UI5Element {
986986
}
987987

988988
async getInputDOMRef() {
989-
if (isPhone() && this.Suggestions && this.suggestionItems.length) {
989+
if (isPhone() && this.Suggestions) {
990990
await this.Suggestions._respPopover();
991991
return this.Suggestions && this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
992992
}

packages/main/src/features/InputSuggestions.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ class Suggestions {
131131
this.responsivePopover = await this._respPopover();
132132
this._beforeOpen();
133133

134-
if (this._getItems().length) {
135-
this.responsivePopover.showAt(this._getComponent());
136-
}
134+
this.responsivePopover.showAt(this._getComponent());
137135
}
138136

139137
async close(preventFocusRestore = false) {

0 commit comments

Comments
 (0)