Skip to content
New issue

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

o.querySelector(...) is null in /blocks/navigation/view.min.js #57359

Closed
bugnumber9 opened this issue Dec 23, 2023 · 0 comments · Fixed by #57362
Closed

o.querySelector(...) is null in /blocks/navigation/view.min.js #57359

bugnumber9 opened this issue Dec 23, 2023 · 0 comments · Fixed by #57362
Assignees
Labels
[Block] Navigation Affects the Navigation Block Needs Testing Needs further testing to be confirmed. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@bugnumber9
Copy link

Description

I added the search block to a separate navigation in the header as shown below in order to open the search modal on click.
header-editor
It works as expected, however when the menu button is clicked and search modal opens - a JS error is thrown in the console:
header-front
This happens with the default Twenty Twenty-Four theme and no active plugins.

Step-by-step reproduction instructions

  1. Add navigation to the default header in Twenty Twenty-Four theme.
  2. Add search block to the navigation as shown on the first screenshot.
  3. Click the menu button on the frontend to open the search modal.
  4. Check browser console.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@bugnumber9 bugnumber9 added the [Type] Bug An existing feature does not function as intended label Dec 23, 2023
@Mamaduka Mamaduka added Needs Testing Needs further testing to be confirmed. [Block] Navigation Affects the Navigation Block labels Dec 23, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block Needs Testing Needs further testing to be confirmed. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants