From c48b18b388b566b4f6a4d833775db70eb62f4f29 Mon Sep 17 00:00:00 2001 From: Trisha Crowley Date: Mon, 6 Oct 2014 22:26:29 -0400 Subject: Menu: Typeahead now accounts for leading whitespace Fixes #10649 Closes gh-1356 --- 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 31263fbcf..31f621d22 100644 --- a/ui/menu.js +++ b/ui/menu.js @@ -638,7 +638,7 @@ return $.widget( "ui.menu", { // Only match on items, not dividers or other content (#10571) .filter( ".ui-menu-item" ) .filter(function() { - return regex.test( $( this ).text() ); + return regex.test( $.trim( $( this ).text() ) ); }); } }); -- cgit v1.2.3