Search input could get stuck if there are no matches
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Aug 2016 08:13:55 +0000 (10:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Aug 2016 08:13:55 +0000 (10:13 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Input.js

index 21372097b47e68ad3928204478c49aa56d64fe39..42dea42289cbbc10980dacebebcba3b7d9a0e8fc 100644 (file)
@@ -126,6 +126,7 @@ define(['Ajax', 'Core', 'EventKey', 'Dom/Util', 'Ui/SimpleDropdown'], function(A
                        if (value.length < this._options.minLength) {
                                if (this._dropdownContainerId) {
                                        UiSimpleDropdown.close(this._dropdownContainerId);
+                                       this._activeItem = null;
                                }
                                
                                // value below threshold