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

briantes created an issue. See original summary.

Binu Varghese’s picture

Status: Active » Postponed (maintainer needs more info)

@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

Binu Varghese’s picture

Status: Postponed (maintainer needs more info) » Fixed

Incorporated in 8.x-4.0..

Binu Varghese’s picture

Status: Fixed » Closed (fixed)
lokeshsn22’s picture

#2 solved the issue. Thanks @Binu Varghese.

navizenitram’s picture

#2 solved the issue, In my case the problem was a I only have to remove href='#' and the error was fixed.

Thanks