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

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

Open
@hysakhr

Description

@hysakhr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions