Skip to content

Commit d973162

Browse files
authored
fix(ui5-input): fix event handling in firefox (#4447)
1 parent ab4b08a commit d973162

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/main/src/Input.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,8 @@ class Input extends UI5Element {
771771
});
772772
}
773773

774-
async _handleInput(event) {
775-
const inputDomRef = await this.getInputDOMRef();
774+
_handleInput(event) {
775+
const inputDomRef = this.getInputDOMRefSync();
776776
const emptyValueFiredOnNumberInput = this.value && this.isTypeNumber && !inputDomRef.value;
777777

778778
this.suggestionSelectionCanceled = false;
@@ -1021,6 +1021,14 @@ class Input extends UI5Element {
10211021
return this.nativeInput;
10221022
}
10231023

1024+
getInputDOMRefSync() {
1025+
if (isPhone() && this.Suggestions) {
1026+
return this.Suggestions && this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
1027+
}
1028+
1029+
return this.nativeInput;
1030+
}
1031+
10241032
/**
10251033
* Returns a reference to the native input element
10261034
* @protected

0 commit comments

Comments
 (0)