Use media query event listener instead of a listener on the resize event

Created on 28 July 2021, over 3 years ago
Updated 27 April 2024, 8 months ago

Problem/Motivation

in nav-tabs.es6.js we have

    $(window)
      .on('resize.tabs', Drupal.debounce(toggleCollapsed, 150))
      .trigger('resize.tabs');

ToggleCollapsed should be an event listener to the media query defined inside.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.3

Component
Claro 

Last updated 2 days ago

Created by

🇫🇷France nod_ Lille

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024