From 3617a8a7a88fe8fc29acd5f0382807451a661f72 Mon Sep 17 00:00:00 2001 From: SandyDatatables Date: Fri, 13 Aug 2021 15:46:42 +0000 Subject: [PATCH] fix: needed another undefined check --- features/fuzzySearch/dataTables.fuzzySearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/fuzzySearch/dataTables.fuzzySearch.js b/features/fuzzySearch/dataTables.fuzzySearch.js index fd9555d..8380a27 100644 --- a/features/fuzzySearch/dataTables.fuzzySearch.js +++ b/features/fuzzySearch/dataTables.fuzzySearch.js @@ -301,7 +301,7 @@ // The function that we want to run on search var triggerSearchFunction = function(event){ // If the search is only to be triggered on return wait for that - if ((event.type === 'input' && !initial.search.return) || event.key === "Enter") { + if ((event.type === 'input' && (initial.search === undefined || !initial.search.return)) || event.key === "Enter") { // If the toggle is set and isn't checkd then perform a normal search if(toggle && !toggle.attr('blurred')) { api.rows().iterator('row', function(settings, rowIdx) {