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

Commit fef41bb

Browse files
committed
Blur the search field on submit -- Fixes #3303
(cherry picked from commit 336db34)
1 parent 8258425 commit fef41bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/widgets/listview.filter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ $( document ).delegate( "ul, ol", "listviewcreate", function() {
3030
var wrapper = $( "<form>", {
3131
"class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
3232
"role": "search"
33+
}).submit( function( e ) {
34+
e.preventDefault();
35+
search.blur();
3336
}),
3437
search = $( "<input>", {
3538
placeholder: listview.options.filterPlaceholder

0 commit comments

Comments
 (0)