missing preventDefault() on click action
mchccc opened this issue · 1 comments
mchccc commented
I believe there should be a call to preventDefault() bound to the click event: I'm adding a href attribute to my anchors for sameness' sake, and the browser gets sent around the page on click events on submenus.
What do you think?
Thanks for your work.
vsn4ik commented
Thanks for issue. I think adding href
attribute for not passing <a>
bad practice.
For fix this issue use before $.fn.submenupicker
function this code:
<script>
$('.dropdown-submenu > a').on('click.bs.dropdown', function(event) {
event.preventDefault();
});
</script>