Navigation Expand/Collapse logic is not working properly in conjunction with Big Pipe

Created on 6 February 2025, about 2 months ago

Problem/Motivation

After merging πŸ“Œ Use a placeholder for the navigation toolbar Active , it was noticed that the Navigation's expand/collapse button is not working as expected anymore when Big Pipe module is enabled.

To avoid multiple js initializations, the code has the following instance:
if (context === document)

Once the Navigation component is served using a lazy builder, this logic could not work because the bar could be served when the context is not the full document.

Steps to reproduce

  • Install a vanilla drupal site and ensure that navigation and big_pipe modules are installed
  • Login as an admin
  • Confirm that navigation's expand/collapse button is not working
  • Uninstall big_pipe module
  • Reload the page and confirm that expand/collapse button is working again

Proposed resolution

Find an alternative logic to determine whether the component should be initialized or not.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

navigation.module

Created by

πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024