Skip to content

Commit ebd2065

Browse files
niyapilhan007
authored andcommitted
fix(ui5-input): Behaviour on mobile device enhanced (#4025)
1 parent 023081e commit ebd2065

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
@@ -998,7 +998,7 @@ class Input extends UI5Element {
998998
}
999999

10001000
async getInputDOMRef() {
1001-
if (isPhone() && this.Suggestions && this.suggestionItems.length) {
1001+
if (isPhone() && this.Suggestions) {
10021002
await this.Suggestions._respPopover();
10031003
return this.Suggestions && this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
10041004
}

packages/main/src/features/InputSuggestions.js

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

133-
if (this._getItems().length) {
134-
this.responsivePopover.open(this._getComponent());
135-
}
133+
this.responsivePopover.open(this._getComponent());
136134
}
137135

138136
async close(preventFocusRestore = false) {

0 commit comments

Comments
 (0)