Open olafurpg opened 3 years ago
This bug is caused by the fact that the focusItem state is part of the FuzzyModal component instead of FuzzyFinder.
focusItem
FuzzyModal
FuzzyFinder
https://github.com/sourcegraph/sourcegraph/blob/41d2a8c7eb192e2a927ab5147b44bc387ee1ef58/client/web/src/components/fuzzyFinder/FuzzyModal.tsx#L67-L70
/cc @felixfbecker
Heads up @macraig - the "team/code-intelligence" label was applied to this issue.
Steps to reproduce:
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 theFuzzyModal
component instead ofFuzzyFinder
.https://github.com/sourcegraph/sourcegraph/blob/41d2a8c7eb192e2a927ab5147b44bc387ee1ef58/client/web/src/components/fuzzyFinder/FuzzyModal.tsx#L67-L70
/cc @felixfbecker