react-search-autocomplete
Advanced tools
Comparing version 7.2.2 to 8.0.0
@@ -70,2 +70,4 @@ "use strict"; | ||
setSearchString(inputSearchString); | ||
var timeoutId = setTimeout(function () { return setResults(fuseResults(inputSearchString)); }, 0); | ||
return function () { return clearTimeout(timeoutId); }; | ||
}, [inputSearchString]); | ||
@@ -158,2 +160,3 @@ (0, react_1.useEffect)(function () { | ||
if (results.length > 0) { | ||
event.preventDefault(); | ||
onSelect(results[highlightedItem]); | ||
@@ -160,0 +163,0 @@ setSearchString(results[highlightedItem][resultStringKeyName]); |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "7.2.2", | ||
"version": "8.0.0", | ||
"description": "A search box for React", | ||
@@ -59,4 +59,4 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"react": "^17.0.2 || ^16.0.2", | ||
"react-dom": "^17.0.2 || ^16.0.2" | ||
"react": "^17.0.2 || ^16.0.2 || ^18.0.0", | ||
"react-dom": "^17.0.2 || ^16.0.2 || ^18.0.0" | ||
}, | ||
@@ -63,0 +63,0 @@ "devDependencies": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40579
531
0