react-component / react-component/pagination

Pressing Enter Triggers Prev, Next Twice

Open
#600 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
674
Forks
333
Avg merge
12m
Merged PRs (30d)
1

Description

Description:

When the Enter key is pressed on a focused pagination button (such as "Prev" or "Next"), the corresponding handler is triggered twice. This occurs because the focused button triggers a click event when Enter is pressed.

Expected Behavior:

The handler should be triggered only once per Enter key press.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pagination button keyboard and click-handling entry points in this repository, then reproduce the issue by focusing Prev or Next and pressing Enter. Trace why one key press invokes the handler twice; done means each Enter press invokes the corresponding handler exactly once.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.