BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Open Closed

Blazor WA main menu bug (lepton theme) #2111


User avatar
0
miroslavs_teched created

Dear ABP,

We're having problem getting the custom CSS class (or element ID) to the rendered main menu item.

  • ABP Framework version: v4.4.3
  • UI type: Blazor
  • Steps to reproduce the issue:" In the menu contributor (method ConfigureMainMenuAsync), while adding new application menu item, parameters elementId and/or cssClass should be used.

context.Menu.AddItem(new ApplicationMenuItem( MyAppMenus.Notifications, l["Menu:Notifications"], icon: "fas fa-bell", order: 6, requiredPermissionName: MyAppPermissions.Notifications.Default, url: NavigationConsts.Notifications.Default, elementId: "my-custom-menu-id", cssClass: "my-custom-menu-class"));

After the web app. loads, we can't find the specified elementId and/or cssClass (using inspector in the browser).

Best Regards, Miroslav ล turlan


1 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello,

    Thank you for the information ๐Ÿ™๐Ÿ™

    I created an internal issue related to the topic because the issue only exists in the lepton theme.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with โค๏ธ on ABP v10.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
๐Ÿ” You need to be logged in to use the chatbot. Please log in first.