Skip to content

Commit

Permalink
fix(ui5-input): Fix js error on mouseover/out (#1931)
Browse files Browse the repository at this point in the history
FIXES: #1930
  • Loading branch information
ilhan007 authored Jul 9, 2020
1 parent 78035f8 commit 7da7a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/main/src/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,13 +894,13 @@ class Input extends UI5Element {
onItemMouseOver(event) {
const item = event.target;
const suggestion = this.getSuggestionByListItem(item);
suggestion.fireEvent("mouseover", { targetRef: item });
suggestion && suggestion.fireEvent("mouseover", { targetRef: item });
}

onItemMouseOut(event) {
const item = event.target;
const suggestion = this.getSuggestionByListItem(item);
suggestion.fireEvent("mouseout", { targetRef: item });
suggestion && suggestion.fireEvent("mouseout", { targetRef: item });
}

onItemSelected(item, keyboardUsed) {
Expand Down

0 comments on commit 7da7a54

Please sign in to comment.