-
Notifications
You must be signed in to change notification settings - Fork 426
Open
Labels
Description
Description
hey! thanks for this awesome library.
downstream issue: react-bootstrap/react-bootstrap#6437
The issue is pretty self-explanatory. When you move through the search results using arrow keys so that you scroll up, search results are obstructed by the sticky header.
It seems to me that it's happening cause the upstream autocomplete library is using scrollIntoView and scrollIntoViewIfNeeded which don't account for the sticky header. This has to be fixed upstream(by possibly allowing to pass an offset?). I've created this issue to track the fix here once upstream makes it possible to be fixed.
Steps to reproduce
- Go to https://docsearch.algolia.com/
- Click on the search button in the upper right corner.
- In the modal that is shown, input something so that the list gets populated with results
- Use arrow keys to navigate to the bottom of the modal
- Use arrow key up to go up through the list so that the list scrolls upwards
- The results that are being scrolled into view are not fully shown due to the sticky header
Live reproduction:
docsearch-bug.webm
Expected behavior
Elements should scroll underneath the sticky header so that they're visible
Environment
- OS: Linux
- Browser: Chrome 103
- DocSearch version: 3.2.1
shortcuts and SuddenLeeus