MegaMenu: at items array item - style or styleClass NOT working #12771
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Setting values for
style
orstyleClass
attributes not working at p-megaMenu component at inidividual object atitems
list.Code:
navigationItems
type of Array<MegaMenuItem>
as written in docs should support in it'sitems
array styleClass and style attributes to apply CSS for specificMegaMenu
item in items array. It does NOT work, even if you provide it at MenuItem interface (can be seen fully at bottom).CSS should be applied and should be seen in the Inspector screenshoot either at
<li>
or<a>
item.<li>
item:<a>
Environment
Angular 14 framework, Windows 10, Google Chrome browser.
Reproducer
No response
Angular version
14.1.1
PrimeNG version
14.2.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.13.1
Browser(s)
No response
Steps to reproduce the behavior
Try to add
style
orstyleClass
attributes at items array (MenuItem
type) atMegaMenu
(MegaMenuItem
type) component.Expected behavior
CSS should be applied to any
MenuItem
item when style orstyleClass
attributes are applied through TypeScript onMegaMenuItem
list pushing array on component initialization.MegaMenuItem and MenuItem model (
style
andstyleClass
available in both):The text was updated successfully, but these errors were encountered: