[go: nahoru, domu]

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

[Tree]In the draggable tree component, the Dropdown context menu in the TreeNode.TitleTemplate is invalid. #4139

Closed
thirking opened this issue Aug 28, 2024 · 1 comment · Fixed by #4176

Comments

@thirking
Copy link
Contributor

Describe the bug

ContextMenu will be invalid on TreeNode because of style="pointer-events: none;"
image

Steps to reproduce (please include code)

If you do something like this:

...
<TreeNode Title="@child.Name" Key="@child.Id" TItem="StructureNode">
    <TitleTemplate>
        <Dropdown Trigger="new[] { Trigger.ContextMenu }">
            <Overlay>
                <Menu>
                    <MenuItem>1</MenuItem>
		    <MenuItem>2</MenuItem>
		</Menu>
	     </Overlay>
             <ChildContent>
                 Test
            </ChildContent>
        </Dropdown>
    </TitleTemplate>
</TreeNode>
...

Further technical details

  • AntDesign Nuget Package version
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version
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

Successfully merging a pull request may close this issue.

2 participants
@thirking and others