quran/quran.com-frontend-next
[feature]: Ayah actions popover menu should close automatically once action is taken
Open
#1,826 opened on Oct 24, 2022
good first issuehelp wanted
Repository metrics
- Stars
- (1,888 stars)
- PR merge metrics
- (PR metrics pending)
Description
Is there an existing issue for this feature?
- There is no exsiting issue for this feature
Summary
When opening the Ayah actions popover menu let's say to view Tafsirs or repeat settings, the popover menu stays opened even after the action modal e.g. repeat settings is closed. We should close the popover menu once action is taken. Actions that should this apply to are:
- Copying verse-related data inside Advanced Copy modal.
- Starting repeating the Ayah inside Repeat Settings modal.
- Viewing Tafsirs of Ayah inside Tafsirs modal.

Your purposed solution for this feature
This could be achieved by making use of onActionTriggered inside src/components/Verse/OverflowVerseActionsMenuBody.tsx.