diff --git a/src/extensions/filter-control/bootstrap-table-filter-control.js b/src/extensions/filter-control/bootstrap-table-filter-control.js index 78f76e21e4..b3c6ccfad6 100644 --- a/src/extensions/filter-control/bootstrap-table-filter-control.js +++ b/src/extensions/filter-control/bootstrap-table-filter-control.js @@ -318,7 +318,7 @@ return; } - clearTimeout(event.currentTarget.timeoutId); + clearTimeout(event.currentTarget.timeoutId || 0); event.currentTarget.timeoutId = setTimeout(function () { that.onColumnSearch(event); }, that.options.searchTimeOut); @@ -333,7 +333,7 @@ return; } - clearTimeout(event.currentTarget.timeoutId); + clearTimeout(event.currentTarget.timeoutId || 0); event.currentTarget.timeoutId = setTimeout(function () { that.onColumnSearch(event); }, that.options.searchTimeOut); @@ -351,7 +351,7 @@ var newValue = $input.val(); if (newValue === "") { - clearTimeout(event.currentTarget.timeoutId); + clearTimeout(event.currentTarget.timeoutId || 0); event.currentTarget.timeoutId = setTimeout(function () { that.onColumnSearch(event); }, that.options.searchTimeOut);