Link in DropdownMenuItem closes the DropdownMenu when hovered over. #3752
paul040696
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simple DropdownMenu with some actions. One of them is a link from next/link that should redirect the user to a details page. Whenever the mouse hovers over the Link (not item) the dropdownMenu will automatically close. I've tried to stopPropagation at onMousEnter, onClick, onSelect, I marked the dropdownItem asChild but none of this work. I have a very similar implementation for another table on a different page but there everything works fine.
If I disable Link's prefetch it works but I'd like to keep it for performance benefits.
NOT WORKING (locale comes from useLocla hook from next-intl and the dropdownMenu is rendered inside a tanstack/react-table)
WORKING:
Beta Was this translation helpful? Give feedback.
All reactions