Modals

Menu stops working after modal fired

8 months 4 weeks ago #78133

Betton Design's Avatar Betton Design

Confidential information:
(hidden)

Hi
I am having problems with Modals. If you go to the website I have mentioned and click on the "Stay With Us" menu item then there is a drop down. Dismiss it and now click on the "Reserve a table" button on the right and a modal opens. Close the modal and click on the "Stay With Us" menu item again and the drop down doesn't work. If I disable the modals plugin then the dropdown works every time.
I have installed the dev release v9.9.0-rev979637 but this hasn't fixed it.
Any ideas?

8 months 4 weeks ago #78135

Peter van Westen's Avatar Peter van Westen Admin

Check your browser's console to get more info about the javascript errors on your page.
After a second or 2 it gives this error:

(index):83 Uncaught TypeError: Cannot read property 'initialise' of undefined at (index):83
After that the menu stops working.

Going to your html output you will find this javascript code mentioning 'initialise'.
window.cookieconsent.initialise({

So there is your issue.
This has nothing to do with Modals.

8 months 4 weeks ago #78137

Betton Design's Avatar Betton Design

Hi Peter
I always do!
I not getting a single error in my console.

8 months 4 weeks ago #78138

Betton Design's Avatar Betton Design

Despite the fact I am not getting errors, I have disabled the cookie plugin and the issue still exists.
Don't worry yourself, I'll fix it on my own!

8 months 4 weeks ago #78140

Peter van Westen's Avatar Peter van Westen Admin

Looks like you fixed it :)