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);