ThemeAvenue/Bootstrap-Collapse-Menu

data-parent doesn't correspond

Closed this issue · 0 comments

pdme commented

Hi,

Thanks for this - exactly what I was looking for.

One thing, the attribute data-parent of the a element in .panel-heading doesn't correspond with the id of the .panel-group div, preventing the open items from collapsing when another item is being opened.

The problem is in line 151 of bootstrap-collapse-nav-walker.php.

Replace that line with
$atts['data-parent'] = '#menu-' . wp_get_nav_menu_object($args->menu)->slug;
, and it works.

Cheers