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

Commit 336db34

Browse files
committed
Blur the search field on submit -- Fixes #3303
1 parent 751a158 commit 336db34

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
@@ -35,6 +35,9 @@ $( document ).delegate( "ul, ol", "listviewcreate", function() {
3535
var wrapper = $( "<form>", {
3636
"class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
3737
"role": "search"
38+
}).submit( function( e ) {
39+
e.preventDefault();
40+
search.blur();
3841
}),
3942
search = $( "<input>", {
4043
placeholder: listview.options.filterPlaceholder

0 commit comments

Comments
 (0)