mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-22 20:42:24 +00:00
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
@inherits MudComponentBase
|
|
|
|
<MudMenu @ref="FakeMenu" Style="display: none" OpenChanged="FakeOpenChanged"></MudMenu>
|
|
|
|
@* The portal has to include the cascading values inside, because it's not able to teletransport the cascade *@
|
|
<MudPopover tracker="@Id"
|
|
Open="@_open"
|
|
Class="unselectable"
|
|
MaxHeight="@MaxHeight"
|
|
AnchorOrigin="@AnchorOrigin"
|
|
TransformOrigin="TransformOrigin"
|
|
RelativeWidth="@(FullWidth ? DropdownWidth.Relative : DropdownWidth.Adaptive)"
|
|
OverflowBehavior="OverflowBehavior.FlipAlways"
|
|
Style="@_popoverStyle"
|
|
@ontouchend:preventDefault>
|
|
<CascadingValue Value="@(FakeMenu)">
|
|
@if (_showChildren)
|
|
{
|
|
<MudList T="object"
|
|
Class="unselectable"
|
|
Dense="@Dense">
|
|
@ChildContent
|
|
</MudList>
|
|
}
|
|
</CascadingValue>
|
|
</MudPopover>
|
|
|
|
<MudOverlay Visible="@(_open)" LockScroll="@LockScroll" AutoClose="true" OnClosed="@CloseMenuAsync" /> |