Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I use this theme I get this error in console log clicking on the page (it doesn't matter where you click, a menu, a button or the white parts): Uncaught Error: Syntax error, unrecognized expression: #
This is all the error I can see in the console:
jquery.min.js?v=3.2.1:2 Uncaught Error: Syntax error, unrecognized expression: #
at Function.ga.error (jquery.min.js?v=3.2.1:2)
at ga.tokenize (jquery.min.js?v=3.2.1:2)
at ga.select (jquery.min.js?v=3.2.1:2)
at Function.ga [as find] (jquery.min.js?v=3.2.1:2)
at r.fn.init.find (jquery.min.js?v=3.2.1:2)
at new r.fn.init (jquery.min.js?v=3.2.1:2)
at r (jquery.min.js?v=3.2.1:2)
at b (bootstrap.min.js:6)
at HTMLAnchorElement.<anonymous> (bootstrap.min.js:6)
at Function.each (jquery.min.js?v=3.2.1:2)
If I switch back to the seven theme, I don't get the error.
Comments
Comment #2
Binu Varghese CreditAttribution: Binu Varghese commented@briantes,
Try removing: data-target="#" ( /templates/navigation/menu--main.html.twig )
This should fix it.
Please find a similar issue in here - https://www.drupal.org/project/bootstrap/issues/2903656
Comment #3
Binu Varghese CreditAttribution: Binu Varghese commentedIncorporated in 8.x-4.0..
Comment #4
Binu Varghese CreditAttribution: Binu Varghese commentedComment #5
lokeshsn22 CreditAttribution: lokeshsn22 as a volunteer and commented#2 solved the issue. Thanks @Binu Varghese.
Comment #6
navizenitram CreditAttribution: navizenitram commented#2 solved the issue, In my case the problem was a I only have to remove href='#' and the error was fixed.
Thanks