Issue #3225621: Use media query event listener instead of a listener on the resize event
3 unresolved threads
Closes #3225621
Merge request reports
Activity
added 1 commit
added 1 commit
added 296 commits
-
e4c61324...3dbf9972 - 293 commits from branch
project:9.3.x
- 980299df - Issue #3225621: Use media query event listener instead of a listener on the resize event
- 5e0d2c5b - Issue #3225621: Correcting custom command error
- 9291603a - Issue #3225621 by marcusvsouza: adding changes made in comment #8 by...
Toggle commit list-
e4c61324...3dbf9972 - 293 commits from branch
39 39 } 40 40 }; 41 41 42 const toggleCollapsed = () => { 43 if (window.matchMedia('(min-width: 48em)').matches) { 42 const toggleCollapsed = (matches) => { changed this line in version 7 of the diff
60 60 } 61 61 }; 62 62 63 const handleToggleMQ = (event) => { changed this line in version 7 of the diff
68 72 }); 69 73 70 74 $tab.on('click.tabs', '[data-drupal-nav-tabs-trigger]', openMenu); 71 $(window) 72 // @todo use a media query event listener https://www.drupal.org/project/drupal/issues/3225621 73 .on('resize.tabs', Drupal.debounce(toggleCollapsed, 150)) 74 .trigger('resize.tabs'); 75 76 const mql = window.matchMedia('(min-width: 48em)'); 77 mql.addListener(handleToggleMQ); 78 toggleCollapsed(mql.matches); changed this line in version 7 of the diff
added 174 commits
-
9291603a...089376cf - 171 commits from branch
project:9.3.x
- 5ba73bf6 - Issue #3225621: Use media query event listener instead of a listener on the resize event
- c7e10d74 - Issue #3225621: Correcting custom command error
- 824a25e0 - Issue #3225621 by marcusvsouza: adding changes made in comment #8 by...
Toggle commit list-
9291603a...089376cf - 171 commits from branch
Please register or sign in to reply