You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On mobile view, clicking on the space between trigger and menu clicks on the first element after closing the menu, even with stopPropagation applied at multiple levels.
Expected behavior
Clicking on this space should only close the menu and not affect the first item of the dropdown menu.
Additional context
The issue seems to be specific to mobile views
I've tried adding stopPropagation at multiple levels:
On the dropdown trigger
On the dropdown content
On individual dropdown items
On the parent container
The issue persists despite these attempts
Screen.Recording.2025-01-08.at.3.08.33.PM.mov
Steps to Reproduce
Open the demo in a mobile view.
Click the ellipsis button to open the dropdown menu.
Click on the space below the ellipsis button and dropdown menu.
Observe that the checkmark changes to green after closing the menu.
The text was updated successfully, but these errors were encountered:
Yehya22
changed the title
Mobile View: Dropdown Menu Items Trigger First Element When clicking in the space between the trigger and the menu after closing the menu.
Mobile View: Dropdown Menu Trigger First Element When clicking in the space between the trigger and the menu after closing the menu.
Jan 8, 2025
Description
On mobile view, clicking on the space between trigger and menu clicks on the first element after closing the menu, even with stopPropagation applied at multiple levels.
Expected behavior
Clicking on this space should only close the menu and not affect the first item of the dropdown menu.
Additional context
Screen.Recording.2025-01-08.at.3.08.33.PM.mov
Steps to Reproduce
Repository Link
Dropdown Component File
src/Dropdown.svelte
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: