-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
platform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
The ContextFlyout property does not work with WebView. When a MenuFlyout is assigned to the ContextFlyout of a WebView, it never appears on right-click. This works as expected on other controls, but WebView ignores it entirely and overrides it with its own implementation.
You can see this bug even in the Maui Controls sample App
Steps to Reproduce
maui/src/Controls/samples/Controls.Sample/Pages/Core/ContextFlyoutPage.xaml
Lines 127 to 135 in 2f80167
| <WebView x:Name="ContextMenuWebView" Source="https://bing.com" MinimumHeightRequest="400"> | |
| <FlyoutBase.ContextFlyout> | |
| <MenuFlyout> | |
| <MenuFlyoutItem Text="Go to MAUI repo" Clicked="OnWebViewGoToSiteClicked"></MenuFlyoutItem> | |
| <MenuFlyoutSeparator /> | |
| <MenuFlyoutItem Text="Invoke some JS" Clicked="OnWebViewInvokeJSClicked"></MenuFlyoutItem> | |
| </MenuFlyout> | |
| </FlyoutBase.ContextFlyout> | |
| </WebView> |
<WebView x:Name="ContextMenuWebView" Source="https://bing.com" MinimumHeightRequest="400">
<FlyoutBase.ContextFlyout>
<MenuFlyout>
<MenuFlyoutItem Text="Go to MAUI repo" Clicked="OnWebViewGoToSiteClicked"></MenuFlyoutItem>
<MenuFlyoutSeparator />
<MenuFlyoutItem Text="Invoke some JS" Clicked="OnWebViewInvokeJSClicked"></MenuFlyoutItem>
</MenuFlyout>
</FlyoutBase.ContextFlyout>
</WebView>Screen.Recording.2025-06-30.at.01.05.11.mov
Metadata
Metadata
Assignees
Labels
platform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working