Skip to content

Commit c0ffbac

Browse files
authored
fix(ui5-input): fix javascript error on mobile (#1339)
1 parent 786f4e9 commit c0ffbac

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/main/src/Input.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,6 @@ class Input extends UI5Element {
601601
}
602602
}
603603

604-
605604
getInputValue() {
606605
const inputDOM = this.getDomRef();
607606
if (inputDOM) {
@@ -614,7 +613,7 @@ class Input extends UI5Element {
614613
let inputDomRef;
615614

616615
if (isPhone()) {
617-
inputDomRef = this.getStaticAreaItemDomRef().querySelector(".ui5-input-inner-phone");
616+
inputDomRef = this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
618617
}
619618

620619
if (!inputDomRef) {

packages/main/src/features/InputSuggestions.js

+4
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ class Suggestions {
278278
}
279279

280280
async _respPopover() {
281+
if (this.responsivePopover) {
282+
return this.responsivePopover;
283+
}
284+
281285
const staticAreaItem = await this._getComponent().getStaticAreaItemDomRef();
282286
this.responsivePopover = staticAreaItem.querySelector("ui5-responsive-popover");
283287
return this.responsivePopover;

0 commit comments

Comments
 (0)