Skip to content
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

Submenus not dismissing top menu #3387

Closed
alecf opened this issue Mar 1, 2019 · 2 comments
Closed

Submenus not dismissing top menu #3387

alecf opened this issue Mar 1, 2019 · 2 comments

Comments

@alecf
Copy link
Contributor

alecf commented Mar 1, 2019

Environment

  • Package version(s):
  • Browser and OS versions:

Steps to reproduce

  1. Make a popover with a button and menu:
const menu = <Menu>
  <MenuItem text="submenu">
    <MenuItem text="submenu item">
  </MenuItem>
</Menu>;

const popover = <Popover content={menu}>
  <Button>Open menu</Button>
</Popover>;
  1. Click the button, click the submenu, click the submenu item

Actual behavior

Overall menu does not dismiss

Expected behavior

All the popovers dismiss

Possible solution

Not sure - I would hope that somehow the click events would propagate up the DOM and ultimately dismiss the toplevel <Popover>

@alecf
Copy link
Contributor Author

alecf commented Mar 1, 2019

I'm just realizing this might be due to #2796

@adidahiya
Copy link
Contributor

closing in favor of #3010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants