Commit 3a2dad63 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Hack-fix for problem with hiding dropdown on blur.

parent 539e2034
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -62,7 +62,15 @@ Ext.define('Docs.controller.Search', {
                    }
                },
                blur: function() {
                    this.getDropdown().hide();
                    // Don't hide the dropdown right away, otherwise
                    // we don't receive the itemclick event when focus
                    // was lost because we clicked on dropdown item.
                    // Not really a good solution, but I can't
                    // currently think of anything better.  Behaves
                    // badly when you make a long mouse press on
                    // dropdown item.
                    var dropdown = this.getDropdown();
                    Ext.Function.defer(dropdown.hide, 500, dropdown);
                }
            }
        });