From 7da7a5411026c9f85f6cc92d3e2299d19f8d6aae Mon Sep 17 00:00:00 2001 From: ilhan orhan Date: Thu, 9 Jul 2020 09:44:35 +0300 Subject: [PATCH] fix(ui5-input): Fix js error on mouseover/out (#1931) FIXES: #1930 --- packages/main/src/Input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/main/src/Input.js b/packages/main/src/Input.js index f6e3af799339..1b11e440edaf 100644 --- a/packages/main/src/Input.js +++ b/packages/main/src/Input.js @@ -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) {