Problem/Motivation

After upgrading to D11.4.4 when closing the Navigation module's sidebar the pane collapses as expected. But the space created doesn't collapse. The console throws the error: Uncaught TypeError: Cannot read properties of null (reading 'focus') pointing to admin-toolbar-wrapper.js:113. This seems specific to themes that use Stable9 for a base theme. Stable9 has its own navigation.html.twig file that is not setting the attribute 'data-drupal-selector': 'admin-toolbar-mobile-trigger' the way the main navigation module does.

Steps to reproduce

Enable Navigation module for a site that uses Stable9 as a base theme. Toggle Navigation sidebar open/closed.

Proposed resolution

In Stable9's navigation.html.twig make sure the same attributes are added that the core module template adds.

Issue fork drupal-3614083

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jnettik created an issue. See original summary.

jnettik’s picture

Status: Active » Closed (outdated)

Closing this as Stable9 was removed from core: #3567667: Deprecate Stable9

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.