diff options
author | Trisha Crowley <trisha.crowley@gmail.com> | 2014-10-06 22:26:29 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-10-07 07:45:01 -0400 |
commit | c48b18b388b566b4f6a4d833775db70eb62f4f29 (patch) | |
tree | 747c577fd3023f30ea057e75471291b0c09ec4bc /ui | |
parent | 29c72fc256be3294d5dc2e0e21a69e13acb29b3a (diff) | |
download | jquery-ui-c48b18b388b566b4f6a4d833775db70eb62f4f29.tar.gz jquery-ui-c48b18b388b566b4f6a4d833775db70eb62f4f29.zip |
Menu: Typeahead now accounts for leading whitespace
Fixes #10649
Closes gh-1356
Diffstat (limited to 'ui')
-rw-r--r-- | ui/menu.js | 2 |
1 files changed, 1 insertions, 1 deletions
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() ) ); }); } }); |