We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What happened? Whenever I click a sub-item of a menu item, I get a type error in my console that says event is not defined.
event
The problem occurs in theme-default.js on line 16 in the closeSidebar function. Here is the definition of the function:
function closeSidebar(event) { event.preventDefault(); if (menuWrapper) { menuWrapper.classList.remove('open'); navButton.classList.remove('open'); } }
And the only place where it's called is on line 82:
closeSidebar();
No parameter is passed here, so the event parameter is undefined.
My guess is you can simply remove the parameter and the event.preventDefault() call, but there might be a reason it's there that I'm not aware of?
event.preventDefault()
My environment:
php -v
My Scribe config (minus the comments):
Additional info:
The text was updated successfully, but these errors were encountered:
Thanks for the report. Do any other visible bugs happen when you click?
Sorry, something went wrong.
ce94c03
No branches or pull requests
What happened?
Whenever I click a sub-item of a menu item, I get a type error in my console that says
event
is not defined.The problem occurs in theme-default.js on line 16 in the closeSidebar function. Here is the definition of the function:
And the only place where it's called is on line 82:
No parameter is passed here, so the
event
parameter is undefined.My guess is you can simply remove the parameter and the
event.preventDefault()
call, but there might be a reason it's there that I'm not aware of?My environment:
php -v
): 8.0My Scribe config (minus the comments):
Additional info:
The text was updated successfully, but these errors were encountered: