From 950c2b0e35602cafeb0285587a14300c0f834ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E7=BF=BC?= Date: Thu, 14 Dec 2017 16:52:15 +0800 Subject: [PATCH] Update bootstrap-table-filter-control.js --- .../filter-control/bootstrap-table-filter-control.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);