-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Bug Description
The arrow key navigation (← →) works correctly for moving between verses/pages. However, when the user clicks the "Previous Verse" or "Next Verse" button, the arrow key navigation stops working. It only starts working again after clicking somewhere else on the page.
Expected Behavior
Arrow key navigation should continue to work even after clicking the navigation buttons.
Steps to Reproduce
- Open any surah page.
- Use the left/right arrow keys (← →) to navigate between verses → Works fine.
- Click the "Next Verse" button.
- Try using the arrow keys again → No navigation happens.
- Click somewhere on the page background.
- Try arrow keys again → Navigation works again.
Possible Cause
- After clicking, the focus remains on the
<Link>
(which renders as an<a>
element). - The global
keydown
event may not be captured properly while the link retains focus.
Metadata
Metadata
Assignees
Labels
No labels