Created by: tagliala
Dear all,
I found a wrong behaviour when using both modals and scrollspy in the same navbar.
If you put in a navbar a link to a modal - let's say to #myModal - and scrollspy enabled, the #myModal link is rendered as active.
This edit prevents the scrollspy plugin to check for links to modal divs, replacing line 50 of js/bootstrap-scrollspy.js with
return /^#\w/.test(href) && $(href).length && !($(this).attr('data-toggle') == 'modal') ? href : null
Maybe a better solution is possible
Best Regards
GT