mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: Include "input" event for searches. See #1280
This commit is contained in:
parent
1710f5c25b
commit
daa7cfa89c
2
dist/js/widgets/widget-filter.min.js
vendored
2
dist/js/widgets/widget-filter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -831,9 +831,9 @@
|
||||
// don't allow 'change' event to process if the input value is the same - fixes #685
|
||||
if ( table.config.widgetOptions.filter_initialized &&
|
||||
( event.which === tskeyCodes.enter || event.type === 'search' ||
|
||||
( event.type === 'change' ) && this.value !== c.lastSearch[column] ) ||
|
||||
// only "input" event fires in MS Edge when clicking the "x" to clear the search
|
||||
( event.type === 'input' && this.value === '' ) ) {
|
||||
( event.type === 'change' || event.type === 'input' ) &&
|
||||
this.value !== c.lastSearch[column] )
|
||||
) {
|
||||
event.preventDefault();
|
||||
// init search with no delay
|
||||
$( this ).attr( 'data-lastSearchTime', new Date().getTime() );
|
||||
|
Loading…
Reference in New Issue
Block a user