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

Created on 28 July 2021, almost 3 years ago
Updated 27 April 2024, 21 days 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 about 4 hours 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.67.2 2024