pagination
pagination copied to clipboard
fix: prevent double trigger on Enter key press
This pull request fixes an issue where pressing the Enter key on a focused pagination button triggers the event handler twice. This happens because the button triggers a click event when Enter is pressed.
Changes:
- Added event.preventDefault() in runIfEnter to prevent the default action.
Linked Issue:
#600.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| pagination | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 5, 2024 1:31am |