Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Blur the search field on submit -- Fixes #3303
Browse files Browse the repository at this point in the history
(cherry picked from commit 336db34)
  • Loading branch information
gseguin committed Nov 15, 2012
1 parent 8258425 commit fef41bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/widgets/listview.filter.js
Expand Up @@ -30,6 +30,9 @@ $( document ).delegate( "ul, ol", "listviewcreate", function() {
var wrapper = $( "<form>", {
"class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
"role": "search"
}).submit( function( e ) {
e.preventDefault();
search.blur();
}),
search = $( "<input>", {
placeholder: listview.options.filterPlaceholder
Expand Down

0 comments on commit fef41bb

Please sign in to comment.