react-component / react-component/pagination
Pressing Enter Triggers Prev, Next Twice
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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