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

Overwrite ContextMenuTrigger for some child elements #81

Closed
quajak opened this issue Sep 7, 2020 · 3 comments
Closed

Overwrite ContextMenuTrigger for some child elements #81

quajak opened this issue Sep 7, 2020 · 3 comments

Comments

@quajak
Copy link

quajak commented Sep 7, 2020

Describe the bug
When creating a second ContextMenuTrigger, within a ContextMenuTrigger, and an element within the inner trigger is clicked both are shown and not only the inner one.

To Reproduce
Run the following code:

<ContextMenuTrigger MenuId="menu">
    <div>
        <p>Test</p>
        <ContextMenuTrigger MenuId="special">
            <div>Special</div>
        </ContextMenuTrigger>
    </div>

</ContextMenuTrigger>

<ContextMenu Id="menu">
    <Item >Item 1</Item>
    <Item> Item 2</Item>
    <Item> Item 3</Item>
</ContextMenu>

<ContextMenu Id="special">
    <Item>Special</Item>
</ContextMenu>

And click on special.

Expected behavior
It should only show one menu with the item special.

Screenshots
image

@stavroskasidis
Copy link
Owner

Thank you for the reproduction steps. I will work on this asap

stavroskasidis added a commit that referenced this issue Sep 8, 2020
@stavroskasidis
Copy link
Owner

Fixed in 1.7

@quajak
Copy link
Author

quajak commented Sep 8, 2020

Thanks!

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