pagination icon indicating copy to clipboard operation
pagination copied to clipboard

fix: prevent double trigger on Enter key press

Open liansnail opened this issue 1 year ago • 1 comments

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.

liansnail avatar Aug 05 '24 01:08 liansnail

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

vercel[bot] avatar Aug 05 '24 01:08 vercel[bot]