Skip to content

Blazor Modal in submenu goes under menu #13683

@sturlath

Description

@sturlath

I have this modal window that shows up under the menu items it originates from.

image

I´m adding this menu item and then just open the modal

  public class StreamEventSettingComponentContributor : ISettingComponentContributor
  {
      public async Task ConfigureAsync(SettingComponentCreationContext context)
      {
          var l = context.ServiceProvider.GetRequiredService<IStringLocalizer<BeinniResource>>();
          context.Groups.Add(
              new SettingComponentGroup(
                  "Beinni.Tenant.Subscripion",
                   l["YourSubscriptions"],
                  typeof(TenantSubscribtionDetailsViewComponent)
              ));
      }
  }

the modal

<Button Clicked="()=>OpenSubscriptionModal">@L["SubscribeButton"]</Button>

<Modal @ref="SelectSubscription" Closing="@OnModalClosing">
    <ModalContent IsCentered="true" Size="ModalSize.Large">
        <Form id="SelectSubscription">
            <ModalHeader>
                <ModalTitle>@L["SelectSubscription"]</ModalTitle>
                <CloseButton Clicked="@HidePreviewModal" />
            </ModalHeader>
            <ModalBody>
                ...removed
            </ModalBody>
        </Form>
    </ModalContent>
</Modal>

Opened like this

  public async Task OpenSubscriptionModal()
  {
      await SelectSubscription.Show();
      return;
  }

Is there a way to do this in Blazor/Blazorise or do I need some CSS Z-style?

  • Your ABP Framework version. 5.3.2
  • Your User Interface Blazor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions