-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(MenuItem): split menu items does not open sub-menu when navigating directly between two split menus #1904
fix(MenuItem): split menu items does not open sub-menu when navigating directly between two split menus #1904
Conversation
splitMenuItemIconButtonRef, | ||
index, | ||
hasChildren, | ||
splitMenuItem, | ||
isMouseEnterOnIconButton, | ||
prevIsMouseEnterOnIconButton, | ||
isActive, | ||
resetOpenSubMenuIndex, | ||
setActiveItemIndex, | ||
isMouseEnter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed unused dependencies
@YuliaGold I think you are experiencing a different issue. |
@YossiSaadi yeah i know that it doesn't reproduce in storybook |
@YuliaGold if it works on an isolated environment, it probably means the bug is not with the component |
@YossiSaadi |
@YuliaGold I mean something I can play with and investigate |
@YossiSaadi ohhh, |
if it's already on staging/prod with FF then even better if I don't need the MF. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YuliaGold I think that just removing line 59 will result in the same effect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@talkor hey, i tried but it didn't make any affect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@talkor @YossiSaadi hey do you have any updates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YuliaGold the issue doesn't reproduce for me
Screen.Recording.2024-01-28.at.10.46.14.mp4
Verified in React 18.2, @YuliaGold please try this prerelease, should resolve this issue anyway |
https://monday.monday.com/boards/2520706822/pulses/5699284655
split menu item doesn't open consistently when hovering between menu items.
isActive is not turning to true even though the mouse is over the correct menu item.
isActive ---> index === activeIndex ---> true
looks like there is missing a render cycle for the menu item in order to update the isActive value so that hover on the split menu item will result in opening the sub menu.
before:
after: