From eb57cefdc58a980a5ee2268eaa92d19af252e0f1 Mon Sep 17 00:00:00 2001 From: Ivaylo Plashkov Date: Wed, 18 May 2022 15:31:35 +0300 Subject: [PATCH] fix(ui5-input): prevent exception if there are suggestion but property is false (#5219) --- packages/main/src/Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/main/src/Input.js b/packages/main/src/Input.js index b345aa06d93a..185ce4122867 100644 --- a/packages/main/src/Input.js +++ b/packages/main/src/Input.js @@ -654,7 +654,7 @@ class Input extends UI5Element { } async onAfterRendering() { - if (this.Suggestions) { + if (this.Suggestions && this.showSuggestions) { this.Suggestions.toggle(this.open, { preventFocusRestore: true, });