From 6b6b49f678706280c5590a5097ef9f0aca359d4b Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Thu, 2 Oct 2014 17:15:07 -0400 Subject: Menu: Maintain focus on already selected item during typeahead Fixes #10644 Closes gh-1354 --- ui/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/menu.js b/ui/menu.js index 9664e37ef..1ecc0ea8c 100644 --- a/ui/menu.js +++ b/ui/menu.js @@ -251,7 +251,7 @@ return $.widget( "ui.menu", { if ( match.length ) { this.focus( event, match ); - if ( match.length > 1 ) { + if ( match.length > 0 ) { this.previousFilter = character; this.filterTimer = this._delay(function() { delete this.previousFilter; -- cgit v1.2.3