algolia / algolia/docsearch

When reaching the top result using ↑/↓ keys, the top result may be out of view

Open
#1,227 0 comments 2 reactions 0 assignees View on GitHub
Needs investigation
Dominant language
TypeScript
Stars
4.4k
Forks
439
Avg merge
14h 32m
Merged PRs (30d)
19

Description

## Description

Do a search that produces more results than fit in the view. Press the down button to navigate through all results. When reaching the bottom-most result, press down again. Now the top result is highlighted, but the view has not been scrolled up far enough to bring the result completely into view.

## Steps to reproduce

1. Go to `https://docsearch.algolia.com/`
2. Press `/`, type `search`, press down key several times until hitting the top result again.
3. The top result is highlighted but not fully in view.

https://user-images.githubusercontent.com/3543224/146619441-6a14f8c2-1aa6-4475-b7d0-ef08fc3d9f49.mov

## Environment

- OS: macOS
- Browser: Chrome 96, also Safari, but it works correctly in Firefox 95

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue at https://docsearch.algolia.com/ by searching for “search” and cycling through results with the arrow keys. Start by locating the keyboard-navigation and result-scrolling entry points; done means the selected top result is completely visible when navigation wraps from the bottom, including in Chrome and Safari.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.