chakra-ui-vue icon indicating copy to clipboard operation
chakra-ui-vue copied to clipboard

CMenu props "autoSelect" set false is not working

Open hysakhr opened this issue 3 years ago • 0 comments

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

hysakhr avatar Feb 09 '22 08:02 hysakhr