diff --git a/packages/main/src/Input.js b/packages/main/src/Input.js index 43062c669202..ec9d81bbf14d 100644 --- a/packages/main/src/Input.js +++ b/packages/main/src/Input.js @@ -596,7 +596,6 @@ class Input extends UI5Element { } } - getInputValue() { const inputDOM = this.getDomRef(); if (inputDOM) { @@ -609,7 +608,7 @@ class Input extends UI5Element { let inputDomRef; if (isPhone()) { - inputDomRef = this.getStaticAreaItemDomRef().querySelector(".ui5-input-inner-phone"); + inputDomRef = this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone"); } if (!inputDomRef) { diff --git a/packages/main/src/features/InputSuggestions.js b/packages/main/src/features/InputSuggestions.js index c217b2af663f..c23e22e1dee1 100644 --- a/packages/main/src/features/InputSuggestions.js +++ b/packages/main/src/features/InputSuggestions.js @@ -277,6 +277,10 @@ class Suggestions { } async _respPopover() { + if (this.responsivePopover) { + return this.responsivePopover; + } + const staticAreaItem = await this._getComponent().getStaticAreaItemDomRef(); this.responsivePopover = staticAreaItem.querySelector("ui5-responsive-popover"); return this.responsivePopover;