Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Popup appearing on hover from a MenuItem clears the the selected menu #2289

Open
marco-ms opened this issue Jan 29, 2020 · 0 comments
Open
Labels
vsts Paired with ticket in vsts

Comments

@marco-ms
Copy link

marco-ms commented Jan 29, 2020

We have something like this:

<Menu
    items={items}
    pointing
    vertical
/>

One item is:

<Popup
    content={...}
    trigger={ <MenuItem /> }
    on={["hover"]}
    trapFocus={true}
/>

What happens is until the mouse cursor is on top of the MenuItem, then item is correctly selected, however when moving the cursor on top of the popup content, the selection is cleared, no item in the menu (still open) is selected.
I thought I can workaround this by specifying the activeIndex in the Menu when the mouse is on top of the popup, but maybe this can be fixed in the Menu itself?

I hope it makes sense.

@pkumarie2011 pkumarie2011 added the vsts Paired with ticket in vsts label Jan 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
vsts Paired with ticket in vsts
Projects
None yet
Development

No branches or pull requests

2 participants