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

CMenu props "autoSelect" set false is not working #518

Open
hysakhr opened this issue Feb 9, 2022 · 0 comments
Open

CMenu props "autoSelect" set false is not working #518

hysakhr opened this issue Feb 9, 2022 · 0 comments

Comments

@hysakhr
Copy link

hysakhr commented Feb 9, 2022

Describe the bug
CMenu props "autoSelect" set false is not working

To Reproduce

  1. create menu (auto-select = false)
<CMenu :auto-select="false">
  <CMenuButton>Menu</CMenuButton>
  <CMenuList>
    <CMenuItem>Menu A<CMenuItem>
    <CMenuItem>Menu B<CMenuItem>
    <CMenuItem>Menu C<CMenuItem>
    <CMenuItem>Menu D<CMenuItem>
  </CMenuList>
</CMenu>
  1. click menu button

  2. see error TypeError: openMenu is not a function

Expected behavior

  1. open menu
  2. menu item is not selected

Screenshots
image

Solution
I think add "openMenu" in MenuContext of CMenu

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

1 participant