Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Focusing search by name causes an unexpected page reload #8448

Open
mpbrown opened this issue Jan 27, 2025 · 1 comment
Open

[BUG] Focusing search by name causes an unexpected page reload #8448

mpbrown opened this issue Jan 27, 2025 · 1 comment
Labels

Comments

@mpbrown
Copy link
Collaborator

mpbrown commented Jan 27, 2025

Description

Focusing the name search box on the View test results page causes a page reload if the user is not on page 1.

Steps to reproduce

  1. Go to 'View test results' for a facility that has more than 20 test results.
  2. Use pagination at the bottom to navigate to page 2.
  3. Focus the 'Search by name' text input by either clicking on it or using Tab/Back Tab to navigate to it by keyboard.
  4. See that the page has reloaded to page 1.

Expected behavior

The search input should not trigger a reload from that element receiving focus. The reload should only trigger after the user enters a value and selects a name to filter by.

Image

Image

@mirrorstage
Copy link
Collaborator

Good catch @mpbrown - this would drive me crazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants