Open
Description
Description:
When performing a search, if the loading bar is still active and the user navigates through the result list (e.g., moves down two items), the selection will automatically reset to the first item once the loading completes. This causes an issue where users may accidentally select the wrong item — for example, pressing Enter to select the third item just as the loading finishes will instead select the first item.
Expected Behavior:
The current selection should remain unchanged when loading completes and new items are rendered.
Steps to Reproduce:
- Trigger a global search that takes time to load results.
- While the loading bar is visible, move the selection down (e.g., to the third item).
- Just as the loading finishes, observe that the selection jumps back to the first item.
- Press Enter — the first item gets selected instead of the intended one.
Impact:
This can lead to a frustrating user experience and unintended selections, especially when trying to act quickly during search.