Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant