You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
empty searchTerm out. matchSorter modifies the order of the response, does not maintain the original order when no search term is entered.
Suggested solution:
I guess checking for value before the actual search and sorting is performed. So if searchTerm is empty just return the input as is.
The text was updated successfully, but these errors were encountered:
hozefaj
changed the title
return item if no search term is provided
maintain order of original data if no search term is provided
Mar 14, 2018
match-sorter
version:2.2.0
node
version:v8.9.3
npm
(oryarn
) version:npm v5.7.1
Relevant code or config
What you did:
searchTerm
searchTerm
out.matchSorter
modifies the order of the response, does not maintain the original order when no search term is entered.Suggested solution:
I guess checking for value before the actual search and sorting is performed. So if
searchTerm
is empty just return the input as is.The text was updated successfully, but these errors were encountered: