Skip to content

Commit

Permalink
No search on enter if filters are unchanged #1631
Browse files Browse the repository at this point in the history
Fixing #1631 by not treating the enter key as a key press and thus not executing the search if enter is pressed while no filters were changed.
  • Loading branch information
larsbonczek authored and Mottie committed Dec 1, 2019
1 parent db5a0d5 commit c2532c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.tablesorter.widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@
event.preventDefault();
// init search with no delay
$( this ).attr( 'data-lastSearchTime', new Date().getTime() );
tsf.searching( table, eventType !== 'keypress', true, column );
tsf.searching( table, eventType !== 'keypress' || event.which === tskeyCodes.enter, true, column );
}
});
},
Expand Down

0 comments on commit c2532c6

Please sign in to comment.