-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Touch events pass through menu items #8977
Comments
@danielchalmers had a fix in mind: #8492 (comment) |
Ok @dennisrahmen so after taking another look it seems to be a few separate problems: The nested example doesn't work because Item 2 is an For your example I'm not sure what's happening and I would need a sample project or try.mudblazor for it to look further. I'm still interested in fixing it I just need more info. Would you mind renaming the issue? The events falling through could still be an issue but I was wrong about it being the full cause. |
@danielchalmers is there a dev version of tryMud? Otherwise the link I posted (#8492 (comment)) sometime ago still is showing the issue. For v7 you would replace all with OnClick of cause. |
I could screenshare on Discord, just ping me if that would help you. |
@dennisrahmen Unfortunately no dev version of trymud but that link is working for me on the dev branch video6.mp4<MudMenu Variant="Variant.Filled" Color="Color.Error" Label="Open Menu and click item">
<MudMenuItem OnClick="OnButtonClicked">Click</MudMenuItem>
</MudMenu>
@code {
[Inject] private IDialogService DialogService { get; set; }
private async void OnButtonClicked()
{
await DialogService.ShowMessageBox("Warning", "Deleting can not be undone!", yesText: "Delete!", cancelText: "Cancel");
}
} If you clone the dev branch and get a repro of your issue going I should be able to fix it |
@danielchalmers I am trying to reproduce it in a newly created project but can't figure out what it is that it is not working in my project. So probably something with my specific setup but weird that it worked flawless before. |
Bug type
Component
Component name
MudMenuItem
What happened?
@danielchalmers I finally updated my app to the preview-3 of v7 and could now test the behavior.
Sadly, still does not work for mobile, although I am not really sure what the problem is.
Would think it has something to do with the recognition of the mobile touch in general, as you see in the video in mobile view the sub menu does not even open, I just go straight to the links in the submenus.
MS Edge on the dev site and my app has the same issue as described before, the OnClick is not fired:
Menus.-.MudBlazor.-.Personlich.Microsoft.Edge.2024-05-15.02-14-03.mp4
Here is my app, working in desktop view but not doing anything when in mobile:
iTS.Dashboard.und.3.weitere.Seiten.-.Personlich.Microsoft.Edge.2024-05-15.02-26-54.mp4
This is the menu code in my
DataGrid
:Expected behavior
Should work the same as in Desktop mode.
Reproduction link
https://dev.mudblazor.com/components/menu#nested-menu
Reproduction steps
See videos
Relevant log output
No response
Version (bug)
7.0.0-preview-3
Version (working)
No response
What browsers are you seeing the problem on?
Chrome, Edge
On which operating systems are you experiencing the issue?
Windows, macOS
Pull Request
Code of Conduct
The text was updated successfully, but these errors were encountered: