From c6f095efebc903dea473ff93edc8f333e2b3f32a Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Sun, 7 May 2017 18:16:36 +0100 Subject: [PATCH] Resolves #140 At the request of the PR update author --- Scripts/Controls/ComboBox/AutoCompleteComboBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Controls/ComboBox/AutoCompleteComboBox.cs b/Scripts/Controls/ComboBox/AutoCompleteComboBox.cs index 98f2379..d00f8ae 100644 --- a/Scripts/Controls/ComboBox/AutoCompleteComboBox.cs +++ b/Scripts/Controls/ComboBox/AutoCompleteComboBox.cs @@ -350,7 +350,7 @@ namespace UnityEngine.UI.Extensions ToggleDropdownPanel(false); } - bool validity_changed = (_panelItems.Contains (Text) == _selectionIsValid); + bool validity_changed = (_panelItems.Contains (Text) != _selectionIsValid); _selectionIsValid = _panelItems.Contains (Text); OnSelectionChanged.Invoke (Text, _selectionIsValid); OnSelectionTextChanged.Invoke (Text);