sidebar isCurrent() issue
Opened this issue · 0 comments
asiridissa commented
Hi Jhon,
I have both 'Item' and 'Item category' as two route titles in config.route.js.
The issue is when I select 'Item category' it also highlight 'Item' in side menu too.
I changed the sidebar.js
return $route.current.title.substr(0, menuName.length) === menuName ? 'current' : '';
as
return $route.current.title === menuName ? 'current' : '';
and now works fine.
Keep up the great work Jhon.
Thanks.