Fuzzy finder: make focusIndex state persistent across blob views
Created by: olafurpg
Steps to reproduce:
- Activate fuzzy finder in sourcegraph/sourcegraph
- Search for "helper"
- Press down arrow
- Press enter
- Activate fuzzy finder again
Expected behavior: the focused filename should be the second filename in the result list for the query "helper"
Actual behavior: the focused filename has been reset to the first filename in the list.
This bug is caused by the fact that the focusItem
state is part of the FuzzyModal
component instead of FuzzyFinder
.