Closed samroberts707 closed 1 year ago
I'm using the craft.navigation.render function to load my nav. I've declared the hasChildrenClass as per the docs but the parent LI doesn't have the defined class.
craft.navigation.render
hasChildrenClass
Here is what my render function looks like:
{{ craft.navigation.render('mainNav', { ulClass: 'nav-items', liClass: 'nav-item', aClass: 'nav-link', activeClass: 'nav-active', hasChildrenClass: 'nav-has-children', }) }}
Here is a screenshot of what is rendered from browser inspection. (I've manually removed the HREF value)
3.5.16
1.4.21
No
No response
hasChildrenClass is only available in Navigation 2 for Craft 4.
Describe the bug
I'm using the
craft.navigation.render
function to load my nav. I've declared thehasChildrenClass
as per the docs but the parent LI doesn't have the defined class.Here is what my render function looks like:
Here is a screenshot of what is rendered from browser inspection. (I've manually removed the HREF value)
Steps to reproduce
Craft CMS version
3.5.16
Plugin version
1.4.21
Multi-site?
No
Additional context
No response