@samitouri / QOS-React-2 / commits / 3d09b4aaa5

Don't select search result unless user does something

Dan Abramov committed Apr 19, 2019 at 01:54 UTC 3d09b4aaa5aa2e2096ba87e2448f4056185b0b6f
1 file changed -4
src/devtools/views/Components/TreeContext.js
-4
@@ -353,10 +353,6 @@ function reduceSearchState(store: Store, state: State, action: Action): State {
353 }
354 }
355
356 - if (searchIndex !== prevSearchIndex) {
357 - // The user intentionally navigated between search results
358 - didRequestSearch = true;
359 - }
356 if (searchText !== prevSearchText) {
357 const newSearchIndex = searchResults.indexOf(selectedElementID);
358 if (newSearchIndex === -1) {