diff --git a/assets/js/frontend.js b/assets/js/frontend.js index e181087..78daa78 100644 --- a/assets/js/frontend.js +++ b/assets/js/frontend.js @@ -200,11 +200,10 @@ function addRssReadMore() { // make parent item of dropdowm menu clickable which is not intended by Bootstrap jQuery( '.dropdown .dropdown-toggle' ).on( 'click', function () { - const dropdownOpen = jQuery( this ).hasClass( 'show' ); - // open parent menu only on second click/touch which will close the dropdown menu - if ( ! dropdownOpen ) { + if ( jQuery( '.dropdown:hover' ).length !== 0 ) { window.location = jQuery( this ).attr( 'href' ); } + return false; } ); /* eslint-enable no-undef */